Skip to content

HeliosDB-Full vs PostgreSQL 14 — Performance Comparison

HeliosDB-Full vs PostgreSQL 14 — Performance Comparison

Date: 2026-02-14 22:47:46
HeliosDB: v7.1.0 (compiled binary, port 5435)
PostgreSQL: 14.20 (Docker container, port 25432)
Table: 1000 rows, 5 columns (INT, TEXT, TEXT, INT, TEXT)
Protocol: PostgreSQL wire protocol (psycopg2)

Results

TestQueriesHeliosDB avgPostgreSQL avgWinner
Point Lookups200075us132usHeliosDB 1.8x FASTER
Full Scan SELECT200323us859usHeliosDB 2.7x FASTER
Aggregates19855us148usHeliosDB 2.7x FASTER
Single-Row INSERT50075us481usHeliosDB 6.4x FASTER
UPDATE WHERE50083us466usHeliosDB 5.6x FASTER
DELETE WHERE20070us450usHeliosDB 6.5x FASTER
Mixed OLTP100082us271usHeliosDB 3.3x FASTER

HeliosDB Optimizations Tested

  1. Point Lookup Fast Path (Imp 8): pk_index → O(1) lsm_get instead of full table scan
  2. Group-Commit WAL (Imp 1): Batched write-ahead log for 26x internal write speedup
  3. SQL Parse Cache (Imp 5): Cached AST for repeated query patterns
  4. SELECT Overhead Reduction (Imp 2): into_iter(), skip UTF-8 alloc, Vec::with_capacity
  5. Finer PerfTracer Spans (Imp 7): Diagnostic visibility into row processing

Notes

  • Both databases accessed via psycopg2 over TCP loopback (127.0.0.1)
  • HeliosDB uses LSM-tree storage; PostgreSQL uses heap + B-tree indexes
  • PostgreSQL has years of production optimization; HeliosDB is research-grade
  • Network round-trip and psycopg2 overhead are included in both measurements
  • Both tables have PRIMARY KEY on id (equal conditions)
  • HeliosDB point lookups use in-memory pk_index (populated during INSERT)
  • PostgreSQL uses B-tree index on PRIMARY KEY