Ten deliveries for each event
Admission runs sequentially in a closed loop. Attempts per second count repeated store calls, not unique payments.
Recorded store workloads
Sequential admission, a queued backlog and competing operation claims. Every measured repetition is retained with its machine details, retry counts and business invariants.
These are database workload measurements. They do not measure HTTP ingestion, signature verification, Stripe API capacity or external outbox delivery.
Retained measurements
Three measured repetitions per configuration. Warm-up results are shown separately.
Protocol passed · 3 measured repetitions
| Run | Admission attempts/s | Committed effects/s | Callback retries | Failed worker attempts | Exhausted retryable transactions | Duplicate effects |
|---|---|---|---|---|---|---|
| 1 | 2,118 | 168 | 0 | 0 | 0 | 0 |
| 2 | 2,058 | 378 | 1 | 0 | 0 | 0 |
| 3 | 2,169 | 306 | 0 | 0 | 0 | 0 |
| Run | Measurement | p50 ms | p95 ms | p99 ms |
|---|---|---|---|---|
| 1 | Admission | 0.41 | 0.69 | 0.93 |
| 1 | Worker iteration | 2.50 | 20.00 | 99.37 |
| 1 | Admission to commit | 6,590.84 | 7,427.84 | 7,515.18 |
| 2 | Admission | 0.40 | 0.67 | 0.82 |
| 2 | Worker iteration | 2.23 | 2.83 | 11.74 |
| 2 | Admission to commit | 3,789.46 | 4,730.94 | 4,825.72 |
| 3 | Admission | 0.39 | 0.66 | 0.81 |
| 3 | Worker iteration | 2.22 | 2.92 | 17.88 |
| 3 | Admission to commit | 4,294.13 | 4,728.42 | 4,801.84 |
| Run | Process CPU ms | Peak RSS MiB | Completed jobs | Effects | Outbox intents | Claimants / owners / busy |
|---|---|---|---|---|---|---|
| 1 | 2,511 | 124.10 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 2 | 2,127 | 124.51 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 3 | 2,163 | 125.27 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
Warm-up retained, excluded from rates: 100 unique events; 0 failed worker attempts; 0 exhausted retryable transactions; 0 callback retries. Final state: 100 jobs, 100 effects and 100 outbox intents; 0 duplicate effects.
Closed-loop sequential admission; ten attempts/event; drain a pre-built backlog with same-process worker lanes and the production retry loop; nearest-rank percentiles. No HTTP, signature verification, Stripe calls or external outbox delivery. Peak RSS sampled every 10ms. Callback retries count repeated transaction callbacks, excluding failures before the callback starts. Recognized SQL conflicts may recover; failed attempts are counted and all business invariants must pass. Warm-up is retained but excluded from measured rates.
Tested source revision: b2c8f9ab9312f574bea5d697fd8c0251cb303404
Source SHA-256: 5840c2f2e99890a2acb213ea6ee756db335330caac347962b03e628705921af6
Protocol passed · 3 measured repetitions
| Run | Admission attempts/s | Committed effects/s | Callback retries | Failed worker attempts | Exhausted retryable transactions | Duplicate effects |
|---|---|---|---|---|---|---|
| 1 | 1,035 | 277 | 310 | 0 | 0 | 0 |
| 2 | 1,057 | 289 | 287 | 0 | 0 | 0 |
| 3 | 1,061 | 283 | 297 | 0 | 0 | 0 |
| Run | Measurement | p50 ms | p95 ms | p99 ms |
|---|---|---|---|---|
| 1 | Admission | 0.91 | 1.32 | 1.51 |
| 1 | Worker iteration | 6.41 | 45.42 | 70.32 |
| 1 | Admission to commit | 6,558.11 | 9,312.35 | 9,599.13 |
| 2 | Admission | 0.89 | 1.28 | 1.42 |
| 2 | Worker iteration | 6.34 | 40.41 | 65.16 |
| 2 | Admission to commit | 6,425.23 | 9,189.37 | 9,416.84 |
| 3 | Admission | 0.90 | 1.29 | 1.41 |
| 3 | Worker iteration | 6.37 | 42.45 | 62.73 |
| 3 | Admission to commit | 6,549.43 | 9,146.57 | 9,385.27 |
| Run | Process CPU ms | Peak RSS MiB | Completed jobs | Effects | Outbox intents | Claimants / owners / busy |
|---|---|---|---|---|---|---|
| 1 | 6,519 | 128.18 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 2 | 6,087 | 130.29 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 3 | 6,083 | 130.55 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
Warm-up retained, excluded from rates: 100 unique events; 3 failed worker attempts; 3 exhausted retryable transactions; 82 callback retries. Final state: 100 jobs, 100 effects and 100 outbox intents; 0 duplicate effects.
Closed-loop sequential admission; ten attempts/event; drain a pre-built backlog with same-process worker lanes and the production retry loop; nearest-rank percentiles. No HTTP, signature verification, Stripe calls or external outbox delivery. Peak RSS sampled every 10ms. Callback retries count repeated transaction callbacks, excluding failures before the callback starts. Recognized SQL conflicts may recover; failed attempts are counted and all business invariants must pass. Warm-up is retained but excluded from measured rates.
Tested source revision: b2c8f9ab9312f574bea5d697fd8c0251cb303404
Source SHA-256: 5840c2f2e99890a2acb213ea6ee756db335330caac347962b03e628705921af6
Protocol passed · 3 measured repetitions
| Run | Admission attempts/s | Committed effects/s | Callback retries | Failed worker attempts | Exhausted retryable transactions | Duplicate effects |
|---|---|---|---|---|---|---|
| 1 | 940 | 212 | 675 | 0 | 0 | 0 |
| 2 | 958 | 218 | 635 | 0 | 0 | 0 |
| 3 | 946 | 211 | 651 | 0 | 0 | 0 |
| Run | Measurement | p50 ms | p95 ms | p99 ms |
|---|---|---|---|---|
| 1 | Admission | 0.98 | 1.49 | 1.76 |
| 1 | Worker iteration | 13.16 | 84.71 | 108.33 |
| 1 | Admission to commit | 7,628.98 | 10,307.66 | 10,584.00 |
| 2 | Admission | 0.97 | 1.46 | 1.69 |
| 2 | Worker iteration | 12.97 | 78.42 | 100.41 |
| 2 | Admission to commit | 7,540.88 | 10,166.78 | 10,402.17 |
| 3 | Admission | 0.97 | 1.46 | 1.73 |
| 3 | Worker iteration | 13.01 | 81.41 | 111.04 |
| 3 | Admission to commit | 7,649.30 | 10,285.91 | 10,528.05 |
| Run | Process CPU ms | Peak RSS MiB | Completed jobs | Effects | Outbox intents | Claimants / owners / busy |
|---|---|---|---|---|---|---|
| 1 | 8,322 | 125.24 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 2 | 7,893 | 125.22 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 3 | 7,945 | 126.07 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
Warm-up retained, excluded from rates: 100 unique events; 3 failed worker attempts; 3 exhausted retryable transactions; 175 callback retries. Final state: 100 jobs, 100 effects and 100 outbox intents; 0 duplicate effects.
Closed-loop sequential admission; ten attempts/event; drain a pre-built backlog with same-process worker lanes and the production retry loop; nearest-rank percentiles. No HTTP, signature verification, Stripe calls or external outbox delivery. Peak RSS sampled every 10ms. Callback retries count repeated transaction callbacks, excluding failures before the callback starts. Recognized SQL conflicts may recover; failed attempts are counted and all business invariants must pass. Warm-up is retained but excluded from measured rates.
Tested source revision: b2c8f9ab9312f574bea5d697fd8c0251cb303404
Source SHA-256: 5840c2f2e99890a2acb213ea6ee756db335330caac347962b03e628705921af6
Legacy baseline · 3 measured repetitions
| Run | Admission attempts/s | Committed effects/s | Callback retries | Failed worker attempts | Exhausted retryable transactions | Duplicate effects |
|---|---|---|---|---|---|---|
| 1 | 4,767 | 556 | Not recorded | 0 | Not recorded | 0 |
| 2 | 4,873 | 556 | Not recorded | 0 | Not recorded | 0 |
| 3 | 4,916 | 556 | Not recorded | 0 | Not recorded | 0 |
| Run | Measurement | p50 ms | p95 ms | p99 ms |
|---|---|---|---|---|
| 1 | Admission | 0.15 | 0.48 | 0.74 |
| 1 | Worker iteration | 6.79 | 10.77 | 12.12 |
| 1 | Admission to commit | 1,871.00 | 2,058.01 | 2,088.02 |
| 2 | Admission | 0.15 | 0.48 | 0.73 |
| 2 | Worker iteration | 6.83 | 10.28 | 11.71 |
| 2 | Admission to commit | 1,880.01 | 2,030.00 | 2,048.99 |
| 3 | Admission | 0.15 | 0.48 | 0.71 |
| 3 | Worker iteration | 6.78 | 10.75 | 12.07 |
| 3 | Admission to commit | 1,865.01 | 2,017.01 | 2,031.01 |
| Run | Process CPU ms | Peak RSS MiB | Completed jobs | Effects | Outbox intents | Claimants / owners / busy |
|---|---|---|---|---|---|---|
| 1 | 3,706 | 100.68 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 2 | 3,585 | 106.55 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
| 3 | 3,645 | 104.77 | 1,000 | 1,000 | 1,000 | 20 / 1 / 19 |
Legacy baseline: no warm-up observation or exhausted-transaction count was recorded. Four same-process worker lanes shared one SQLite connection; this does not establish support for multiple production workers. Other development work was running on the laptop.
Closed-loop sequential admission; ten attempts/event; drain a pre-built backlog with same-process worker lanes; nearest-rank percentiles. No HTTP, signature verification, Stripe calls or external outbox delivery. Peak RSS sampled every 10ms.
Parent revision; modified source inputs were fingerprinted: 35f5e9f930675cefc3d55876e374975105e7f9c2
Source SHA-256: f7f74c84cc5c8cff0948218ac719033f74123ead968f01bfa4e95131f3c1a4de
Reading the numbers
Admission runs sequentially in a closed loop. Attempts per second count repeated store calls, not unique payments.
Worker lanes run in one process. Admission-to-commit latency includes the deliberate backlog; it is not a real-time payment SLA.
Percentiles use nearest rank. The tables show p50, p95 and p99 for each run, without averaging percentiles across runs.
Each run checks one effect, one outbox intent and one completed job per unique event. Duplicate effects and failed attempts remain visible.
Failed attempts retained
The original protocol rejected recovered warm-up transaction conflicts. The corrected protocol counts recognized conflicts and still requires every business invariant to pass. The adapter's retry budget was not changed.
| Lanes | Protocol outcome | Measured runs | Warm-up failed worker attempts | Warm-up final jobs / effects / outbox | Report |
|---|---|---|---|---|---|
| 1 | Passed | 3 | Not recorded | Not recorded | Original JSON ↗ |
| 4 | Failed during warm-up | 0 | 2 | 100 / 100 / 100 | Original JSON ↗ |
| 8 | Failed during warm-up | 0 | 4 | 100 / 100 / 100 | Original JSON ↗ |
Reproduce the workload
Use a repository checkout. Save the output JSON with your configuration rather than comparing unrelated machines as a capacity forecast.
No database server required. The legacy baseline shared one SQLite connection.
npm ci
npm run benchmark
Set a private CHAOS_DATABASE_URL for a disposable test database. The harness
creates its own schema.
BENCH_DATABASE=postgres \
BENCH_EVENTS=10000 \
BENCH_WORKERS=8 npm run benchmark