Performance Benchmarks

Here you can find the results of the performance tests run on each Zenifra PostgreSQL database plan.

Test Methodology

Benchmarks were run using a Node.js script with the postgres library:

  • Parallel threads: 50 simultaneous connections
  • Dataset: 5,000 customers, 1,000 products, 50,000 orders
  • Write tests: 56,000 parallel INSERTs
  • Read tests: 6 heavy queries run in parallel (JOINs, CTEs, window functions, aggregations)
  • Iterations: 5 runs per query (average)

Results by Plan

DB Free

MetricValue
INSERT/second137
SELECT/second~1
Average INSERT latency99ms
Average SELECT latency5.3s (heavy queries)
Test threads20
Concurrent connectionsup to 50

DB Starter

MetricValue
INSERT/second678
SELECT/second~5
Average INSERT latency23ms
Average SELECT latency1.3s (heavy queries)
Test threads20
Concurrent connectionsup to 25

DB Basic

MetricValue
INSERT/second2,239
SELECT/second~13
Average INSERT latency20ms
Average SELECT latency477ms (heavy queries)
Test threads50
Concurrent connectionsup to 50

DB Premium

MetricValue
INSERT/second3,947
SELECT/second~12
Average INSERT latency18ms
Average SELECT latency487ms (heavy queries)
Test threads70
Concurrent connectionsup to 100

DB Enterprise

MetricValue
INSERT/second11,292
SELECT/second~12
Average INSERT latency69ms
Average SELECT latency496ms (heavy queries)
Test threads500
Concurrent connectionsup to 480

Test details:

  • INSERT: 56,000 records in 4.96s (500 parallel threads)
  • SELECT: 6 heavy queries run in parallel (multiple JOINs, CTEs, window functions, aggregations)

Performance Charts

INSERTs per second by plan

12k9k6k0137Free678Starter2.2kBasic3.9kPremium11.3kEnterprise

Performance Summary

  • DB Enterprise is 82x faster than DB Free in INSERTs
  • DB Premium achieves 28x more INSERTs/s than DB Free
  • DB Basic exceeds DB Free by 16x
  • Progressive improvement between each plan

Performance summary:

  • DB Enterprise is 82x faster than DB Free in INSERT operations
  • DB Premium achieves 28x more INSERTs/s than DB Free
  • DB Basic exceeds DB Free by 16x
  • There is progressive improvement between plans

Average latency by plan

100ms75ms50ms0ms99msFree23msStarter20msBasic18msPremium69msEnterprise

Latency Analysis

  • DB Premium has the lowest latency (18ms)
  • DB Enterprise has higher latency (69ms) due to high throughput
  • Latency is 5x lower from Free to Premium
  • Trade-off: more performance = slightly higher latency

Latency analysis:

  • DB Premium has the lowest latency (18ms)
  • DB Enterprise has higher latency (69ms) due to its high throughput
  • Latency is 5x lower from Free to Premium
  • There is a trade-off: more performance can mean slightly higher latency

Performance Comparison

PlanINSERT/sSELECT/s (Heavy/Complex Queries)Latency
DB Free137~199ms
DB Starter678~523ms
DB Basic2,239~1320ms
DB Premium3,947~1218ms
DB Enterprise11,292~1269ms

Factors That Affect Performance

  1. Number of connections: Many simultaneous connections can degrade performance
  2. Indexes: Queries without indexes are significantly slower
  3. Dataset size: Larger datasets can affect response time

Optimization Tips

  • Use proper indexes for your queries
  • Use read replicas for SELECT queries
  • Configure connection pooling for better connection management
  • Monitor logs and metrics (available starting from the Premium plan)

Note: Benchmark values can vary depending on workload and specific configuration.