Skip to content

HeliosDB Full Performance Benchmarks & Metrics

Comprehensive Performance Analysis Across All Features

This document provides detailed performance metrics, benchmarks, cost analysis, and optimization guidelines for HeliosDB Full. The figures come from internal tests of an earlier HeliosDB Full release against the targets and baselines shown; several of the features measured here (scale-to-zero, autoscaling, sharding, multi-node storage) are planned for the current release, which runs as a single server.


Executive Summary

All Performance Targets Met or Exceeded

  • Git Branching: 58x faster than target (555μs vs 100ms)
  • Scale-to-Zero: 43% faster resume (170ms vs 300ms)
  • Autoscaling: 5-20x faster scale-up (600-2,100ms vs 10s)
  • Query-from-Any-Node: 3-5x throughput improvement (met target)
  • Shard Rebalancing: 2x better write spike (<5ms vs <10ms target)
  • HCC v2 Compression: 10-15x ratio (met 8-12x target)
  • Schema Sharding: 5x faster routing (0.1-0.4ms vs 2ms)
  • Distributed FKs: 5x faster co-located (<1ms vs <5ms)
  • 3-Tier Storage: 6% better cost reduction (85% vs 80% target)
  • Safekeeper: 50% write latency reduction (met target)
  • Online Sharding: 10x faster cutover (<100ms vs <1s)
  • Multi-Tenant Quotas: 100x faster checks (<1μs vs <100μs)

Table of Contents


Major Features Performance

Tier 1: Developer Experience

1. Git-Style Database Branching

MetricTargetAchievedResult
Branch creation time<100ms555μs58x faster
Storage overhead (empty branch)<1%0%Zero overhead
Read overhead<5%<1%5x better
Write overhead<20%~10%2x better

Benchmark Details:

  • Branch from timestamp: 555μs
  • Branch from LSN: 623μs
  • Branch checkout: <1ms
  • Branch delete (async): Background process

Storage Efficiency:

  • Empty branch: 0 bytes
  • 1000 row changes: ~50KB delta SSTable
  • 1M row changes: ~45MB delta SSTable
  • Compression ratio: Same as HCC v2 (10-15x)

2. Scale-to-Zero Serverless Compute

MetricTargetAchievedResult
Suspend time<1s~820ms18% faster
Resume time<300ms170ms43% faster
State size<20MB<10MB50% smaller
Billing accuracy<5% error<1% error5x better

Suspend Breakdown:

  • Checkpoint transactions: ~300ms
  • Flush buffer cache: ~400ms
  • Persist connection state: ~100ms
  • Stop compute process: ~20ms
  • Total: ~820ms

Resume Breakdown:

  • Start compute process: ~50ms
  • Restore connection state: ~30ms
  • Warm up buffer cache (lazy): ~90ms
  • Total: ~170ms

Illustrative compute cost (2 CU compute node at an assumed $0.20/CU-hour):

  • Traditional (always-on): 730 hours/month = 1,460 CU-hours = $292/month
  • Dev (4 hrs/day): 120 hours/month = 240 CU-hours = $48/month (84% savings)
  • Staging (8 hrs/day): 240 hours/month = 480 CU-hours = $96/month (67% savings)

3. Dynamic Autoscaling

MetricTargetAchievedResult
Scale-up latency<10s600-2,100ms5-20x faster
Scale-down latency<60s<60sMet target
Oscillation prevention>90%98.4%Exceeded
Cost savings vs. static>20%28.75%44% better

Scaling Performance by Trigger:

  • CPU > 80%: +0.5 CU in 600-1,200ms
  • Queue > 10: +1.0 CU in 800-2,100ms
  • CPU < 30% (5min): -0.5 CU in <60s
  • Idle (5min): Scale to 0 in <5s

Real-World Example (E-Commerce Site):

  • Peak hours (9am-9pm): 4 CUs × 12 hours = 48 CU-hours/day
  • Off-peak (9pm-9am): 1 CU × 12 hours = 12 CU-hours/day
  • Idle weekends: 0 CUs × 48 hours = 0 CU-hours
  • Monthly: 1,320 CU-hours (vs. 1,460 always-on) = 10% savings
  • With weekday variations: 28.75% average savings

4. Query-from-Any-Node Architecture

MetricTargetAchievedResult
Throughput gain3-5x3-5xMet target
Routing latency<5ms<1ms5x faster
Cache miss rate<10%<5%2x better
Invalidation latency<50ms<10ms5x faster

Throughput Comparison (10 compute nodes):

  • Coordinator-only: 1,000 queries/sec maximum
  • Query-from-any-node: 3,000-5,000 queries/sec
  • Improvement: 3-5x

Metadata Cache Performance:

  • Cache size: 512MB default (configurable)
  • Cache hit rate: >95%
  • Cache invalidation broadcast: <10ms
  • Automatic refresh: <50ms

Tier 2: Scalability

5. Zero-Downtime Shard Rebalancing

MetricTargetAchievedResult
Write latency spike<10ms<5ms2x better
Cutover window<1s<100ms10x faster
Migration throughput1GB/minVariable (throttled)Throttled
Read impact0ms0msZero impact

7-Step Rebalancing Process:

  1. Select shards: ~1s
  2. Create target shard: ~30s
  3. Setup replication: ~1m
  4. Bulk copy: Variable (hours for TB shards, >100MB/s)
  5. Catch-up: Minutes (wait for lag < 1000 records)
  6. Cutover: <100ms (lock + drain + update + unlock)
  7. Cleanup: ~1m

Write Latency During Rebalancing:

  • Normal: <1ms
  • During bulk copy: <1.2ms (+20%)
  • During cutover: <5ms spike for <100ms window
  • After cutover: <1ms (back to normal)

6. Enhanced Columnar Compression (HCC v2)

Data TypeHCC v1HCC v2Improvement
Low-cardinality6-8x12-15x2x better
High-cardinality3-5x8-10x2x better
Sorted integers8-10x15-20x2x better
Text (English)4-6x10-12x2x better
JSON3-4x8-10x2.5x better

Compression Algorithm Selection:

AlgorithmUse CaseCompression RatioCPU Overhead
Dictionary EncodingLow-cardinality columns12-15x<2%
Delta EncodingSorted/sequential integers15-20x<1%
Run-Length EncodingRepeated values10-15x<1%
ZSTD Level 3General-purpose8-10x<5%
LZ4Fast decompression6-8x<2%
Frame-of-ReferenceNumeric ranges12-15x<2%
Bit-PackingSmall integers (0-255)10-12x<1%
Null SuppressionSparse columnsVariable<1%

Illustrative storage cost (100TB database at an assumed $0.15/GB-month):

  • HCC v1 @ 6x: 16.7TB actual storage = $2,500/month
  • HCC v2 @ 12x: 8.3TB actual storage = $1,250/month
  • Savings: $1,250/month = $15,000/year

7. Schema-Based Sharding

MetricTargetAchievedResult
Routing latency<2ms0.1-0.4ms5x faster
Schema isolation100%100%Perfect
FK validation<5ms<1ms5x faster
Migration downtime<1s<100ms10x faster

Routing Performance:

  • Schema lookup (cached): 0.1ms
  • Schema lookup (cache miss): 0.4ms
  • Query planning: <0.5ms
  • Total: 0.1-0.4ms routing latency

Multi-Tenant Scalability:

  • 1,000 schemas: 0.1ms routing (cache hit)
  • 10,000 schemas: 0.2ms routing (larger cache)
  • 100,000 schemas: 0.4ms routing (cache overflow)

8. Distributed Foreign Key Validation

MetricTargetAchievedResult
Co-located FK<5ms<1ms5x faster
Reference table FK<5ms<1ms5x faster
Cross-shard FK<20ms<10ms2x faster
Join speedup10-20x37.5x2-4x better

Three Validation Strategies Performance:

  1. Co-located FKs (same shard key):

    • Local shard lookup: <0.5ms
    • Index scan: <0.3ms
    • Total: <1ms
  2. Reference Tables (replicated):

    • Local replica lookup: <0.5ms
    • Index scan: <0.3ms
    • Total: <1ms
  3. Cross-Shard FKs (distributed):

    • Remote node lookup: <5ms
    • Index scan: <3ms
    • Caching: -50% latency on repeat
    • Total: <10ms (first lookup), <5ms (cached)

Join Performance (1M row table):

  • Co-located join: 2.4s (local execution on each shard)
  • Broadcast join (small table): 5.2s (replicate small table)
  • Repartition join: 18.5s (repartition large table)
  • No optimization: 90s (cross-shard shuffle)
  • Speedup: 37.5x (co-located vs. no optimization)

Tier 3: Cloud-Native

9. 3-Tier Storage (Hot/Warm/Cold)

TierMediumLatency TargetAchievedResult
HotNVMe SSD<1ms<1msMet
WarmSATA SSD1-5ms1-5msMet
ColdS310-50ms10-50msMet

Migration Throughput:

  • Hot → Warm: 500MB/s (local disk)
  • Warm → Cold: 100MB/s (throttled, S3 upload)
  • Cold → Warm: 150MB/s (S3 download)

Illustrative storage cost (100TB database; assumed per-GB prices, infrastructure only):

TierData VolumeCost/GB/MonthMonthly Cost
All Hot (Baseline)100TB$0.15$15,000
3-Tier Distribution
- Hot (1TB)1,000 GB$0.15$150
- Warm (5TB)5,000 GB$0.04$200
- Cold (94TB)94,000 GB$0.02$1,880
Total100TB-$2,230
Difference--$12,770/month (85%)

10. Safekeeper Consensus Layer

MetricTargetAchievedResult
Write latency reduction50%50%Met
Durability copies33Met
Recovery time<10s<5s2x faster
WAL replication lag<100ms<50ms2x faster

Write Path Latency:

  • Traditional (2 RTT): Primary → Sync Mirror → ACK = 2 × Network RTT
  • Safekeeper (1 RTT): Primary → Safekeeper Quorum (2/3) → ACK = 1 × Network RTT
  • Reduction: 50%

Example (5ms network RTT):

  • Traditional: 2 × 5ms = 10ms write latency
  • Safekeeper: 1 × 5ms = 5ms write latency
  • Improvement: 5ms faster (50% reduction)

Recovery Performance:

  • Traditional: Replay WAL from disk (~10s for 1GB WAL)
  • Safekeeper: WAL already in memory (~5s for 1GB WAL)
  • Improvement: 2x faster recovery

11. Online Table Sharding Migration

MetricTargetAchievedResult
Cutover window<1s<100ms10x faster
Migration throughput50K rows/s>100K rows/s2x faster
Write impact<5%<3%40% better
Read impact0%0%Zero

7-Phase Process Timing (10B row table, 5TB):

  1. Validation: ~5s
  2. Shard creation: ~30s
  3. Replication setup: ~1m
  4. Bulk data copy: ~14 hours (>100K rows/s, ~100MB/s)
  5. Replication catch-up: ~10m (wait for lag < 1000 rows)
  6. Cutover: <100ms (lock + drain + update + unlock)
  7. Cleanup: ~1m Total: ~14.2 hours (mostly bulk copy in background)

Write Latency During Migration:

  • Normal: <1ms
  • During migration: <1.03ms (+3%)
  • During cutover: <5ms spike for <100ms
  • After migration: <1ms

12. Multi-Tenant Resource Quotas

MetricTargetAchievedResult
Quota check latency<100μs<1μs100x faster
Enforcement accuracy>99%99.9%10x better
Priority schedulingWorksWorksMet
Tenant isolation100%100%Perfect

QoS Tier Performance (1,000 tenants):

  • Bronze (700 tenants): 2 CU each = 1,400 CUs total
  • Silver (250 tenants): 8 CU each = 2,000 CUs total
  • Gold (50 tenants): 32 CU each = 1,600 CUs total
  • Total: 5,000 CUs with fair allocation

Quota Enforcement Latency:

  • In-memory quota check: <1μs
  • Quota update (on change): <10μs
  • Violation detection: <5μs
  • Total overhead: <1μs per query

PostgreSQL Compatibility Performance

Wire Protocol Performance

OperationPostgreSQL 17 NativeHeliosDB FullRatio
Simple SELECTBaseline85-90%0.85-0.90x
Complex JOIN (3 tables)Baseline80-85%0.80-0.85x
INSERT (single)Baseline90-95%0.90-0.95x
INSERT (bulk 1000 rows)Baseline75-80%0.75-0.80x
UPDATE (indexed column)Baseline85-90%0.85-0.90x
DELETE (indexed row)Baseline85-90%0.85-0.90x
B-tree Index ScanBaseline90-95%0.90-0.95x
Full Table ScanBaseline95-100%0.95-1.00x
Aggregate (COUNT, SUM)Baseline80-85%0.80-0.85x
Window FunctionsBaseline75-80%0.75-0.80x

Performance Goal: 95% parity with native PostgreSQL (on track)

Benchmark Setup:

  • PostgreSQL 17.0 on Ubuntu 22.04
  • HeliosDB Full on Ubuntu 22.04
  • Hardware: 8 cores, 32GB RAM, NVMe SSD
  • Dataset: 10M rows, 100 tables, 50GB total

Oracle Compatibility Performance

PL/SQL execution through the Oracle listener — procedures, functions, anonymous blocks and common DBMS_ packages — is on the roadmap. PL/SQL performance figures will be published once PL/SQL runs through the Oracle protocol. Today, port PL/SQL to PL/pgSQL functions and run them through the PostgreSQL interface, or move the logic into the application tier.


HTAP Workload Performance

OLTP Performance (TPC-C)

MetricEarlier baselineMeasuredImprovement
Transactions/sec125K TPS162.5K TPS+30% (query-from-any-node)
Average latency8ms6ms+25%
95th percentile15ms12ms+20%

Improvement Breakdown:

  • Query-from-any-node: +30%
  • HCC v2 compression (less I/O): +5%
  • Metadata service optimization: +10%

OLAP Performance (TPC-H Q6)

MetricEarlier baselineMeasuredImprovement
Exact query (scan 100M rows)12s11s+8%
Approximate query (1% sample)0.3s0.28s+7%

Improvement Breakdown:

  • HCC v2 compression (less I/O): +8%
  • Query optimization: +5%
  • 3-tier storage (hot tier): +3%

Time-Series Ingestion

MetricEarlier baselineMeasuredImprovement
Rows/sec500K/s650K/s+30%
Write latency (p99)5ms4ms+20%

Improvement Breakdown:

  • HCC v2 compression (faster writes): +15%
  • Safekeeper (1 RTT vs 2 RTT): +10%
  • Autoscaling (more resources during spikes): +10%

Other Workloads

WorkloadEarlier baselineMeasuredImprovement
Full-Text Search10ms9ms+10%
Geospatial KNN20ms18ms+10%
ML Inference<5ms<4ms+20%
Cross-Region Replication<100ms<95ms+5%

Infrastructure Cost Examples

The examples below are illustrative infrastructure calculations using the assumed unit prices shown (compute at $0.20/CU-hour; storage at the per-GB prices listed). They cover compute and storage only and do not include HeliosDB licence costs; substitute your own provider prices and usage.

Development + Staging Databases

Scenario: 10 dev databases + 5 staging databases, each 2 CUs

Traditional (Always-On):

  • 10 dev: 2 CU × 730 hours = 14,600 CU-hours/month ($2,920/month)
  • 5 staging: 2 CU × 730 hours = 7,300 CU-hours/month ($1,460/month)
  • Total: $4,380/month ($52,560/year)

HeliosDB Full (Scale-to-Zero):

  • 10 dev (4 hrs/day): 2 CU × 120 hours = 2,400 CU-hours/month ($480/month)
  • 5 staging (8 hrs/day): 2 CU × 240 hours = 2,400 CU-hours/month ($480/month)
  • Total: $960/month ($11,520/year)

Difference: $41,040/year (78% fewer compute hours)


Storage Costs (100TB Database)

Traditional (All NVMe):

  • 100,000 GB × $0.15/GB = $15,000/month

HeliosDB Full (3-Tier):

  • Hot (1TB NVMe): 1,000 GB × $0.15/GB = $150/month
  • Warm (5TB SATA): 5,000 GB × $0.04/GB = $200/month
  • Cold (94TB S3): 94,000 GB × $0.02/GB = $1,880/month
  • Total: $2,230/month

Difference: $153,240/year (85% lower storage cost)


Optimization Guidelines

1. Use Git-Style Branching for Testing

Best Practice:

  • Create branch per pull request
  • Test schema migrations on branch
  • Delete branch after merge

Benefits:

  • Zero risk to production
  • Fast branch creation (555μs)
  • No storage overhead

2. Enable Scale-to-Zero for Dev/Staging

Configuration:

autoscaling:
enabled: true
min_cu: 0.0
scale_to_zero_after: 300s # 5 minutes

Benefits:

  • 84% cost reduction for dev databases
  • 67% cost reduction for staging databases

3. Configure Autoscaling for Production

Configuration:

autoscaling:
enabled: true
min_cu: 2.0 # Always have 2 CUs minimum
max_cu: 16.0 # Scale up to 16 CUs
target_cpu: 70 # Target 70% CPU utilization
scale_up_threshold: 80 # Scale up at 80%
scale_down_threshold: 30 # Scale down at 30%

Benefits:

  • Handle traffic spikes automatically
  • 28.75% cost savings vs. static provisioning
  • Better performance during peaks

4. Use 3-Tier Storage for Large Datasets

Configuration:

tiered_storage:
enabled: true
policies:
hot_to_warm: 7d
warm_to_cold: 30d

Benefits:

  • 85% cost reduction for 100TB database
  • Automatic tiering (no manual intervention)
  • Performance maintained for hot data

5. Use Schema-Based Sharding for Multi-Tenancy

SQL:

-- Shard entire schema (simpler than column-based sharding)
CREATE SCHEMA tenant_1234 DISTRIBUTED;

Benefits:

  • Zero application changes
  • Natural isolation boundaries
  • Simplified foreign keys

6. Enable HCC v2 Compression

SQL:

CREATE TABLE events (
...
) WITH (
compression = 'hcc_v2',
compression_level = 'high'
);

Benefits:

  • 10-15x compression ratio
  • 50% storage cost reduction vs. HCC v1
  • Adaptive algorithm selection

SQL:

-- Shard both tables by same key
CREATE TABLE users (...) SHARD BY (tenant_id);
CREATE TABLE orders (...) SHARD BY (tenant_id);
-- Result: 37.5x faster joins

Benefits:

  • <1ms FK validation
  • 37.5x join speedup
  • Local execution on each shard

Summary

All Performance Targets Met or Exceeded:

Key Achievements:

  • 58x faster Git branching (555μs)
  • Scale-to-zero for dev/staging (84% fewer compute hours in the example above)
  • 3-tier storage (85% lower storage cost in the example above)
  • 3-5x query throughput (query-from-any-node)
  • 10-15x compression (HCC v2)
  • 37.5x join speedup (distributed FKs)

See also: Configuration