# bunqueue 2.9.4 Performance: 11-Release Lifecycle Comparison

Historical release benchmark comparing bunqueue 2.9.4 against ten earlier releases (2.8.56-2.9.3) across complete durable Embedded and TCP SQLite job lifecycles.

Canonical: https://bunqueue.dev/guide/version-performance-2-9-4/

---

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.

> **Note: Historical v2.9.4 release study (2026-09-03)**
>
> This page documents the engineering milestone shipped in **bunqueue 2.9.4** (comparing v2.9.4 against the ten preceding releases). For current broker and multi-broker capacity figures, see [Engineering Benchmarks](https://bunqueue.dev/guide/benchmarks/).

**In 30 seconds**

- TCP + SQLite lifecycle jumped 10.87x over v2.9.3 (1,465.14 vs 134.74 jobs/s; median elapsed dropped 90.8% from 4,453 ms to 410 ms).
- Embedded SQLite lifecycle rose +18.0% over v2.9.3 (1,469.37 vs 1,245.02 jobs/s) while cutting CPU time by 17.5% and peak RSS by 13.6%.
- The TCP jump eliminated a 50 ms ACK-batch fallback delay on partial completion waves by flushing as soon as every reachable active job buffers.
- All 88,000 measured jobs and 1,760 planned retries completed exactly once with zero wire-format or schema changes.

*[Interactive doc iso diagram: How flushing the reachable ACK frontier lifted TCP + SQLite lifecycle 10.87x - 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) - open the HTML page to view it.]*

## Visual comparison: v2.9.4 vs prior releases

*[Interactive metric bars: TCP lifecycle throughput: 10.87x faster by eliminating partial-wave ACK waits - Medians of 5 fresh-process runs on Apple M1 Max (Bun 1.4.0). Applies specifically to low-concurrency ACK batching waves - open the HTML page to view it.]*

*[Interactive metric bars: Embedded lifecycle throughput: +18.0% vs v2.9.3 and +5.0% vs v2.9.2 - Lower telemetry retention overhead and amortized O(1) completion eviction also cut median CPU by 17.5% and peak RSS to 92.9 MiB - open the HTML page to view it.]*

## Full 11-release tables

### 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)

| 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

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

**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](https://bunqueue.dev/changelog/#294---2026-09-03) and [Engineering Benchmarks](https://bunqueue.dev/guide/benchmarks/).
