bunqueue 2.9.4 Performance: 11-Release Lifecycle Comparison
- Docs
- Reference
- Benchmarks
- v2.9.4 Performance
benchmarks · v2.9.4 release study
v2.9.4 removes the completion-path wait.
Controlled 11-release comparison measuring full durable SQLite job lifecycles (admission, delivery, retries, result persistence, and terminal verification) from v2.8.56 through v2.9.4.
v2.9.4 Release Study
How flushing the reachable ACK frontier lifted TCP + SQLite lifecycle 10.87x
Visual comparison: v2.9.4 vs prior releases
Section titled “Visual comparison: v2.9.4 vs prior releases” tcp + sqlite durable lifecycle · 600 jobs · concurrency 8 · ack batch 20
TCP lifecycle throughput: 10.87x faster by eliminating partial-wave ACK waits
embedded sqlite durable lifecycle · 1,000 jobs · concurrency 8
Embedded lifecycle throughput: +18.0% vs v2.9.3 and +5.0% vs v2.9.2
Full 11-release tables
Section titled “Full 11-release tables”Embedded SQLite lifecycle (1,000 jobs)
Section titled “Embedded SQLite lifecycle (1,000 jobs)”| Release | Median elapsed | Median throughput | 2.9.4 gain | Median CPU | Median peak RSS |
|---|---|---|---|---|---|
| 2.9.4 | 680.56 ms | 1,469.37 jobs/s | - | 632 ms | 92.9 MiB |
| 2.9.3 | 803.20 ms | 1,245.02 jobs/s | +18.02% | 766 ms | 107.5 MiB |
| 2.9.2 | 714.91 ms | 1,398.78 jobs/s | +5.05% | 696 ms | 105.2 MiB |
| 2.9.1 | 1,001.24 ms | 998.77 jobs/s | +47.12% | 914 ms | 100.7 MiB |
| 2.9.0 | 1,001.51 ms | 998.50 jobs/s | +47.16% | 912 ms | 100.1 MiB |
| 2.8.61 | 990.91 ms | 1,009.17 jobs/s | +45.60% | 903 ms | 73.7 MiB |
| 2.8.60 | 1,005.82 ms | 994.21 jobs/s | +47.79% | 894 ms | 74.2 MiB |
| 2.8.59 | 1,002.65 ms | 997.36 jobs/s | +47.33% | 901 ms | 74.5 MiB |
| 2.8.58 | 1,011.31 ms | 988.82 jobs/s | +48.60% | 910 ms | 74.6 MiB |
| 2.8.57 | 1,003.38 ms | 996.63 jobs/s | +47.43% | 907 ms | 73.2 MiB |
| 2.8.56* | 997.28 ms | 1,002.73 jobs/s | +46.54% | 898 ms | 74.0 MiB |
*Version 2.8.56 is marked do-not-use due to separate packaging/CI issues and is kept solely for historical continuity.
TCP + SQLite lifecycle (600 jobs)
Section titled “TCP + SQLite lifecycle (600 jobs)”| Release | Median elapsed | Median throughput | 2.9.4 ratio | Elapsed range |
|---|---|---|---|---|
| 2.9.4 | 409.52 ms | 1,465.14 jobs/s | - | 392.26-445.81 ms |
| 2.9.3 | 4,453.00 ms | 134.74 jobs/s | 10.87x | 4,399.61-4,483.33 ms |
| 2.9.2 | 4,372.78 ms | 137.21 jobs/s | 10.68x | 4,342.30-4,396.76 ms |
| 2.9.1 | 4,635.26 ms | 129.44 jobs/s | 11.32x | 4,569.39-4,697.78 ms |
| 2.9.0 | 4,627.86 ms | 129.65 jobs/s | 11.30x | 4,599.78-4,638.30 ms |
| 2.8.61 | 4,466.54 ms | 134.33 jobs/s | 10.91x | 4,425.35-4,489.56 ms |
| 2.8.60 | 4,443.06 ms | 135.04 jobs/s | 10.85x | 4,404.47-4,513.26 ms |
| 2.8.59 | 4,423.38 ms | 135.64 jobs/s | 10.80x | 4,400.58-4,464.23 ms |
| 2.8.58 | 4,423.86 ms | 135.63 jobs/s | 10.80x | 4,366.65-4,465.89 ms |
| 2.8.57 | 4,394.49 ms | 136.53 jobs/s | 10.73x | 4,352.05-4,452.49 ms |
| 2.8.56* | 4,398.56 ms | 136.41 jobs/s | 10.74x | 4,385.17-4,468.68 ms |
Three engineering fixes shipped in v2.9.4
Section titled “Three engineering fixes shipped in v2.9.4”- Reachable ACK frontier flush: When worker
concurrency(8) was smaller than ACKbatchSize(20), prior releases waited out a 50 ms fallback timer on every partial wave. Version 2.9.4 flushes immediately once every active job that can reach the batch is buffered, while preserving coalescing under sustained load. - Amortized O(1) completion eviction: Replaced repeated
Setiterator restarts during completion-cap eviction with ordered occurrence tokens and bounded stale-slot compaction. - Leaner SQLite & event-journal telemetry: Reused prepared statements, tracked exact per-queue counts without retaining full payload graphs, and skipped retention deletes until a queue actually crosses its cap.
Workload definition, environment & revisions
Section titled “Workload definition, environment & revisions”Exact workload parameters, Apple M1 Max environment, and tested git revisions
- Workload: 512-byte payloads, worker
concurrency: 8, ACKbatchSize: 20, 5% delayed jobs, 2% retried once, fresh SQLite database and fresh process per sample (1 warm-up + 5 measured samples, interlaced across releases). Embedded ran 1,000 jobs/sample; TCP ran 600 jobs/sample. - Host: Apple M1 Max (10 cores, 32 GiB RAM, Darwin 25.6.0, Bun 1.4.0, AC power).
- Revisions:
2.9.4(b83dd7bc),2.9.3(3fbfde2c),2.9.2(c39facb9),2.9.1(90856560),2.9.0(30eb3a16),2.8.61(808f015d),2.8.60(52d3fb06),2.8.59(2bb5b95d),2.8.58(07cbf5cd),2.8.57(7b6da8c0),2.8.56(fcc98904). - Scope note: Compare releases within one mode (Embedded vs TCP used different job counts). Does not cover PostgreSQL, WAN latency, or multi-hour retention.
See the 2.9.4 changelog entry and Engineering Benchmarks.