Reference setup · in-house test

Analytics performance based on the TPC-H benchmark: PostgreSQL vs GritDB

On 22 analytics queries derived from TPC-H, GritDB was up to 43.5 times faster than PostgreSQL, and 9.5 times faster in total (SF20). GritDB also finished the 2 queries that PostgreSQL did not finish, each in just over 1 second. Both databases ran on the same server specification.

Query with the largest speedup · Q18 · SF20 (PostgreSQL 69.6 s → GritDB 1.6 s)
Up to 43.5 times
SF20 · total of 20 queries (PostgreSQL 282.2 s → GritDB 29.8 s)
9.5 times in total
Queries PostgreSQL did not finish (Q17 · Q20) · GritDB 1.0 s to 1.3 s
2 queries

In-house test (2026-09) · Amazon EC2 r8i.16xlarge (64 vCPU, 512 GB). PostgreSQL ran with the default parallel and work_mem settings (2 parallel workers per query, work_mem 4MB). Speedups are computed from times before rounding. Totals and speedups count the 20 queries that both databases finished. Speedup per query: 1.8 to 21.3 times at SF10 and 3.4 to 43.5 times at SF20. These results are derived from TPC-H. They are not official TPC-H results and cannot be compared with published TPC-H results.

The gap grows with the data

For the total of 20 queries, GritDB was 5.4 times faster at SF10 and 9.5 times faster at SF20. When the data doubled from SF10 to SF20, the total time grew 2.1 times for PostgreSQL and 1.2 times for GritDB. At SF20, GritDB still finished every one of the 22 queries within 2.6 s.

Time per query

SF20 (twice the size of SF10) · Time per query (shorter is faster)
SF10 (86.58 million rows) · Time per query (shorter is faster)
Show time per query as a table (SF10 · SF20)Hide time per query as a table (SF10 · SF20)
SF10SF20
QueryPostgreSQLGritDBSpeedupPostgreSQLGritDBSpeedup
Q118.7 s1.4 s13.0 times37.4 s1.6 s24.0 times
Q22.1 s0.8 s2.5 times4.6 s1.1 s4.2 times
Q36.5 s1.2 s5.4 times13.8 s1.5 s9.3 times
Q42.2 s1.2 s1.8 times4.3 s1.3 s3.4 times
Q54.7 s1.2 s3.9 times6.1 s1.4 s4.3 times
Q62.9 s0.5 s5.5 times5.7 s0.6 s9.8 times
Q74.7 s1.2 s3.8 times9.4 s1.3 s7.1 times
Q83.9 s1.4 s2.7 times9.1 s1.6 s5.7 times
Q915.1 s1.7 s9.1 times34.3 s2.3 s14.6 times
Q105.8 s1.5 s3.8 times11.7 s2.4 s4.9 times
Q111.4 s0.4 s3.4 times2.8 s0.7 s3.8 times
Q125.4 s1.6 s3.4 times10.7 s1.7 s6.4 times
Q135.4 s2.3 s2.4 times11.0 s2.6 s4.3 times
Q142.8 s0.8 s3.6 times5.6 s1.0 s5.8 times
Q153.3 s0.6 s5.5 times6.6 s0.6 s10.4 times
Q162.0 s0.6 s3.5 times4.2 s0.8 s5.0 times
Q17Did not finish1.0 s—Did not finish1.3 s—
Q1832.6 s1.5 s21.3 times69.6 s1.6 s43.5 times
Q193.7 s1.8 s2.1 times7.3 s2.1 s3.4 times
Q20Did not finish1.0 s—Did not finish1.3 s—
Q217.5 s2.4 s3.1 times19.3 s2.5 s7.6 times
Q223.1 s0.6 s5.2 times8.8 s1.0 s8.6 times
Total (20 queries)134.0 s24.8 s5.4 times282.2 s29.8 s9.5 times

How we compared

TPC-H dataSF10 · SF20 (same data)
Same data into both databases
PostgreSQLComparison
GritDBAnalytics session
Same 22 queries
Query time comparisonOne query at a time · ms
Setup that ran the same queries on PostgreSQL and GritDB loaded with the same data
Show comparison conditionsHide comparison conditions
  • Queries: 22 queries derived from TPC-H. Each time is the time to run one query, and totals count only the queries that both databases finished.
  • GritDB ran the queries in an analytics session. GritDB's transaction engine (PostgreSQL) is the same version as the PostgreSQL it was compared with.
  • Schema: CHAR columns were changed to VARCHAR. This differs from the original TPC-H schema.
  • Data load time is not included in this comparison.
Show the test environmentHide the test environment
RoleSetupServerCPUMemory
ComparisonPostgreSQL 17.4Amazon EC2 r8i.16xlarge64 vCPU512 GB
TargetGritDB (transaction engine: PostgreSQL 17.4)Amazon EC2 r8i.16xlarge64 vCPU512 GB

Data: TPC-H data at SF10 (86.58 million rows) and SF20 (twice the size of SF10). Measured in 2026-09.

The CDC sync from the same test is in Adding an analytics system to an Oracle® operational database with CDC, and the setup of the two engines is in Architecture.

TPC-H is a trademark of the Transaction Processing Performance Council. Amazon EC2 is a trademark of Amazon.com, Inc. or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. Postgres, PostgreSQL and the Slonik Logo are trademarks or registered trademarks of the PostgreSQL Community Association of Canada, and used with their permission.

See GritDB for yourself

Ask for a discovery meeting or a PoC, and we will get in touch.