Skip to content
Get started
Get started
bunqueue 2.9.4 Performance: 11-Release Lifecycle Comparison
View Markdown
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

remove stall v2.9.3 50ms ACK Wait 134.74 jobs/s TCP commit FIX Frontier Flush no idle batch wait measure WAL SQLite Commit 0 schema changes v2.9.4 10.87x Faster 1,465.14 jobs/s TCP All 88,000 jobs & 1,760 planned retries completed exactly once across 11 releases
Eliminated partial-wave stalls: flushing ACKs as soon as every reachable active job buffers dropped median TCP elapsed time 90.8% (4,453 ms → 410 ms).

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
jobs/s (higher is better)
  • v2.9.4 409.52 ms median · reachable ACK frontier flush
    1,465.14 jobs/s
  • v2.9.2 4,372.78 ms median
    137.21 jobs/s
  • v2.8.57 4,394.49 ms median
    136.53 jobs/s
  • v2.9.3 4,453.00 ms median
    134.74 jobs/s
  • v2.9.1 4,635.26 ms median
    129.44 jobs/s
Medians of 5 fresh-process runs on Apple M1 Max (Bun 1.4.0). Applies specifically to low-concurrency ACK batching waves.
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
jobs/s (higher is better)
  • v2.9.4 680.56 ms · 632 ms CPU · 92.9 MiB RSS
    1,469.37 jobs/s
  • v2.9.2 714.91 ms · 696 ms CPU · 105.2 MiB RSS
    1,398.78 jobs/s
  • v2.9.3 803.20 ms · 766 ms CPU · 107.5 MiB RSS
    1,245.02 jobs/s
  • v2.8.61 990.91 ms · 903 ms CPU · 73.7 MiB RSS
    1,009.17 jobs/s
  • v2.9.1 1,001.24 ms · 914 ms CPU · 100.7 MiB RSS
    998.77 jobs/s
Lower telemetry retention overhead and amortized O(1) completion eviction also cut median CPU by 17.5% and peak RSS to 92.9 MiB.
ReleaseMedian elapsedMedian throughput2.9.4 gainMedian CPUMedian peak RSS
2.9.4680.56 ms1,469.37 jobs/s-632 ms92.9 MiB
2.9.3803.20 ms1,245.02 jobs/s+18.02%766 ms107.5 MiB
2.9.2714.91 ms1,398.78 jobs/s+5.05%696 ms105.2 MiB
2.9.11,001.24 ms998.77 jobs/s+47.12%914 ms100.7 MiB
2.9.01,001.51 ms998.50 jobs/s+47.16%912 ms100.1 MiB
2.8.61990.91 ms1,009.17 jobs/s+45.60%903 ms73.7 MiB
2.8.601,005.82 ms994.21 jobs/s+47.79%894 ms74.2 MiB
2.8.591,002.65 ms997.36 jobs/s+47.33%901 ms74.5 MiB
2.8.581,011.31 ms988.82 jobs/s+48.60%910 ms74.6 MiB
2.8.571,003.38 ms996.63 jobs/s+47.43%907 ms73.2 MiB
2.8.56*997.28 ms1,002.73 jobs/s+46.54%898 ms74.0 MiB

*Version 2.8.56 is marked do-not-use due to separate packaging/CI issues and is kept solely for historical continuity.

ReleaseMedian elapsedMedian throughput2.9.4 ratioElapsed range
2.9.4409.52 ms1,465.14 jobs/s-392.26-445.81 ms
2.9.34,453.00 ms134.74 jobs/s10.87x4,399.61-4,483.33 ms
2.9.24,372.78 ms137.21 jobs/s10.68x4,342.30-4,396.76 ms
2.9.14,635.26 ms129.44 jobs/s11.32x4,569.39-4,697.78 ms
2.9.04,627.86 ms129.65 jobs/s11.30x4,599.78-4,638.30 ms
2.8.614,466.54 ms134.33 jobs/s10.91x4,425.35-4,489.56 ms
2.8.604,443.06 ms135.04 jobs/s10.85x4,404.47-4,513.26 ms
2.8.594,423.38 ms135.64 jobs/s10.80x4,400.58-4,464.23 ms
2.8.584,423.86 ms135.63 jobs/s10.80x4,366.65-4,465.89 ms
2.8.574,394.49 ms136.53 jobs/s10.73x4,352.05-4,452.49 ms
2.8.56*4,398.56 ms136.41 jobs/s10.74x4,385.17-4,468.68 ms
  1. Reachable ACK frontier flush: When worker concurrency (8) was smaller than ACK batchSize (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.
  2. Amortized O(1) completion eviction: Replaced repeated Set iterator restarts during completion-cap eviction with ordered occurrence tokens and bounded stale-slot compaction.
  3. 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, ACK batchSize: 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.