This is an unscientific comparision of Parquet and Postgress for a simple stat calculation.
The dataset is 2500 rows of Ethereum Event data. Eigenlayer IRewardsCoordinator.RewardsClaimed. The data is stored to the database and then serialized back with the purpose of computing some common statistics, mean, min, max, etc.
docker run --name my-postgres -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=password -e POSTGRES_DB=edb -p 5432:5432 -d postgrescargo run --release --bin pgcargo run --release --bin pq| Storage | Write Time (us) | Read Time (us) | Storage Size (kB) |
|---|---|---|---|
| Parquet | 2687 | 339 | 583 |
| Postgres | 1037531 | 2539 | 1048 |