Skip to content

Conversation

@kriszyp
Copy link
Member

@kriszyp kriszyp commented Dec 26, 2025

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 26, 2025

📊 Benchmark Results

get-sync.bench.ts

getSync() > random keys - small key size (100 records)

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 lmdb 1 20.67K ops/sec 48.38 41.78 530.137 1.05 10,335
🥈 rocksdb 2 4.79K ops/sec 208.93 194.035 2,960.412 1.33 2,394

getSync() > sequential keys - small key size (100 records)

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 lmdb 1 24.41K ops/sec 40.96 36.11 5,159.597 2.21 12,207
🥈 rocksdb 2 5.11K ops/sec 195.871 187.065 607.978 0.304 2,553

ranges.bench.ts

getRange() > small range (100 records, 50 range)

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 lmdb 1 22.60K ops/sec 44.25 36.77 1,141.582 1.07 11,300
🥈 rocksdb 2 3.60K ops/sec 277.821 249.416 1,759.255 1.28 1,800

realistic-load.bench.ts

Realistic write load with workers > write variable records with transaction log

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 rocksdb 1 191.43 ops/sec 5,223.968 72.64 148,846.634 46.50 384
🥈 lmdb 2 22.00 ops/sec 45,457.392 268.809 1,429,558.092 137.455 64.00

transaction-log.bench.ts

Transaction log > read 100 iterators while write log with 100 byte records

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 rocksdb 1 40.67K ops/sec 24.59 14.01 1,012.601 0.836 20,335
🥈 lmdb 2 219.80 ops/sec 4,549.625 748.941 32,756.8 26.05 110

Transaction log > read one entry from random position from log with 1000 100 byte records

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 rocksdb 1 594.07K ops/sec 1.68 1.45 388.676 0.449 297,035
🥈 lmdb 2 315.27K ops/sec 3.17 1.58 4,925.214 4.45 157,636

worker-put-sync.bench.ts

putSync() > random keys - small key size (100 records, 10 workers)

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 rocksdb 1 869.58 ops/sec 1,149.985 989.491 1,843.959 0.275 1,740
🥈 lmdb 2 0.91 ops/sec 1,098,023.065 925,782.7 1,185,692.206 4.89 10.00

worker-transaction-log.bench.ts

Transaction log with workers > write log with 100 byte records

Implementation Rank Operations/sec Mean (ms) Min (ms) Max (ms) RME (%) Samples
🥇 rocksdb 1 18.13K ops/sec 55.16 30.73 6,017.407 0.817 36,260
🥈 lmdb 2 785.80 ops/sec 1,272.592 40.17 12,364.924 5.58 1,573

Results from commit 0a6731d

@kriszyp kriszyp marked this pull request as ready for review December 27, 2025 22:22
@kriszyp kriszyp requested a review from cb1kenobi December 27, 2025 22:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants