Benchmarks
Local PostgreSQL and SQS measurements, a pg-boss comparison, and AWS deployment findings.
This page reports September and October 2026 measurements. Each section names its source, setup, and workload; older results do not describe the current release. Local polling, raw SQS transport, the full PostgreSQL/SQS lane, and an AWS deployment each answer different questions. Performance can change with the workload, configuration, and software version.
| Test | What it measures | What it does not measure |
|---|---|---|
| PostgreSQL polling | The full Runlane lifecycle for prequeued no-op tasks | Enqueue speed or application work |
| Local SQS transport | SQS publish, receive, ordering, and settlement through Ministack | AWS service capacity or network latency |
| Local PostgreSQL/SQS lane | The full lane through Postgres and Ministack | AWS Lambda or RDS capacity |
| AWS deployment check | One small example deployment and its admission limits | Runlane's maximum AWS throughput |
October 23 projection check
This check compared 0.4 source 10614eb with 0.5 source based on eacb321, including two changes that avoid repeated run projections. It used the same Node.js 24.18.0, PostgreSQL 16.14, local Ministack, workloads, worker priority, warm-up, and timer boundaries as the October 22 check. Each process measured one workload and concurrency. Statistics were pinned, and autovacuum was disabled only in disposable schemas.
Up to five attempts per point targeted three control–candidate–candidate–control blocks. A host CPU spike discarded the whole affected block. One interrupted workflow/16 block was also discarded because host samples were incomplete. Each retained window passed its durable correctness audit. Fewer than three retained blocks remains inconclusive, even when its point estimate favors one source. Polling workflow at 64 slots regressed. The other points have wider uncertainty or fewer retained blocks. These measurements do not establish that 0.5 recovered to within 5% of 0.4.
| Lane | Workload / slots | Retained blocks | Windows each | 0.4 rate [range] | Retained 0.5 rate [range] | Paired change [95% interval] | Decision |
|---|---|---|---|---|---|---|---|
| polling | noop / 64 | 1 | 2 | 653.36 [637.10–669.61] | 546.05 [534.74–557.36] | -16.42%; no interval | inconclusive |
| polling | workflow / 16 | 2 | 4 | 28.90 [28.79–29.40] | 26.59 [26.20–27.38] | -7.95% [-8.13%, -7.77%] | inconclusive |
| polling | workflow / 64 | 3 | 6 | 44.79 [43.80–46.38] | 38.39 [38.35–38.40] | -14.87% [-16.76%, -12.94%] | regression |
| sqs | workflow / 16 | 3 | 6 | 21.59 [20.20–22.49] | 20.24 [19.69–20.99] | -4.81% [-13.57%, +4.84%] | inconclusive |
| sqs | workflow / 64 | 3 | 6 | 33.62 [31.39–34.67] | 30.34 [29.48–31.17] | -9.42% [-15.27%, -3.18%] | inconclusive |
| Lane | Workload / slots | Worker CPU ms/completion [range], 0.4 → retained 0.5 | SQL requests/completion [range], 0.4 → retained 0.5 |
|---|---|---|---|
| polling | noop / 64 | 1.422 [1.384–1.460] → 1.733 [1.710–1.756] | 0.2195 [0.2195–0.2195] → 0.2526 [0.2526–0.2526] |
| polling | workflow / 16 | 33.728 [33.603–33.847] → 38.054 [36.628–38.515] | 48.5451 [47.8724–48.6122] → 49.5925 [48.7409–50.4618] |
| polling | workflow / 64 | 24.895 [23.933–25.562] → 29.103 [28.887–29.324] | 24.5223 [24.3175–25.4709] → 26.7070 [26.2917–27.9141] |
| sqs | workflow / 16 | 52.326 [51.298–54.734] → 55.745 [53.753–57.500] | 60.4205 [59.4756–61.6832] → 61.0834 [59.8667–61.5888] |
| sqs | workflow / 64 | 35.073 [33.648–36.709] → 38.894 [37.465–40.189] | 29.9449 [29.5043–30.6154] → 29.8465 [29.5413–30.7186] |
| Lane | Workload / slots | p50 / p95 / p99 ms, 0.4 → retained 0.5 | Paired p95 change [95% interval] | Decision |
|---|---|---|---|---|
| polling | noop / 64 | 10297.5 → 9966.5 / 12558.5 → 14973.5 / 12663.0 → 15325.0 | +19.23%; no interval | inconclusive |
| polling | workflow / 16 | 1081.0 → 1179.0 / 1172.0 → 1263.5 / 1206.5 → 1312.0 | +7.55% [-33.07%, +72.84%] | inconclusive |
| polling | workflow / 64 | 2903.0 → 3192.5 / 3135.0 → 3389.0 / 3207.0 → 3569.0 | +9.91% [+0.15%, +20.63%] | inconclusive |
| sqs | workflow / 16 | 1469.0 → 1551.0 / 1647.5 → 1778.0 / 1709.0 → 1878.0 | +7.02% [+1.73%, +12.59%] | inconclusive |
| sqs | workflow / 64 | 3701.0 → 4050.0 / 4081.0 → 4457.5 / 4207.5 → 4606.5 | +9.03% [-1.02%, +20.11%] | inconclusive |
Values are per-window medians [min–max]. Rates count tasks/s for no-op and parent workflows/s for workflow; each parent creates and joins three children. Worker CPU excludes PostgreSQL and Ministack. Independent ABBA block means use two adjacent log ratios each, with a 95% Student t interval across blocks. The review boundaries are 5% for rate and 10% for p95. A point requires at least three retained blocks even if its estimate or interval otherwise looks favorable. Ranges describe observed spread, not uncertainty. No-op latency includes prequeue age and queue wait.
The projection changes preserve validation and the stored run's private fields. Polling keeps its separate queue-control read; these changes remove no SQL requests. The remaining release cost has not been isolated to an unavoidable guarantee. These shared-host measurements do not establish AWS capacity.
October 22 storage measurements
A fixed workload compared Runlane 0.4 source b2e69b5 with the 0.5 storage path. Each parent created and joined three children: four logical runs per workflow. Each sample used 40 warm-up parents, 400 measured parents, and 16 execution slots. PostgreSQL statistics were pinned after warm-up, and autovacuum was disabled only in each disposable schema. SQS used local Ministack. These counters cover enqueue, execution, and trailing background work.
PostgreSQL's write-ahead log (WAL) records database changes. The WAL counts below cover the workload's tables and indexes.
| Counter per parent workflow | 0.4 polling | 0.5 polling | 0.4 PostgreSQL/SQS | 0.5 PostgreSQL/SQS |
|---|---|---|---|---|
| SQL calls | 31.91 | 31.45 | 73.90 | 74.88 |
| Relation WAL bytes, excluding full-page images | 115,382 | 116,205 | 154,949 | 156,713 |
The 0.4 values are medians of four samples per lane; 0.5 values use two. These are counter comparisons, not paired throughput measurements. Shared-host load affected the archived 0.4 timings, so those timings are not compared here.
Within 0.5, batching queue-control reads with known-run dependencies reduced SQS calls from 77.74 to 75.39 per workflow. Shared locks still protect present and absent controls through admission commit. Polling retains a separate control read after candidate discovery.
Excluding null requested times from the existing range index reduced polling B-tree insertions from 202 to 201 per workflow. Relation WAL without full-page images fell from 116,404 to 116,205 bytes per workflow (0.17%). SQS WAL ranges overlapped. All 17 run indexes remain; production query plans retained the affected range-index paths in both directions and with cursors. General requested-time ordering still scans visible runs and sorts its page.
SQL calls count client requests. These WAL measurements describe write volume in workload tables and indexes. Neither counter measures Aurora billed I/O or establishes AWS capacity or cost.
October 22 throughput check
This check compared 0.4 source 10614eb with 1fbb09d plus the retained 0.5 storage changes above. It used the then-current workflow and no-op saturation workloads on Node.js 24.18.0, PostgreSQL 16.14, and local Ministack. One process ran each lane at background CPU priority (niceness 19) on both sources. Workflow windows lasted ten seconds after a five-second warm-up. Polling no-op cohorts contained 1,000/4,000/8,000 tasks at 1/16/64 slots; SQS used 1,000 tasks at 64 slots. Enqueue and verification were outside the throughput timer. Each disposable schema had pinned statistics and autovacuum disabled during measurement.
Three control–candidate–candidate–control blocks targeted six adjacent pairs at each point. Resumed windows recorded host CPU and load; a CPU spike excluded the whole block. Replacement attempts were bounded. Every point completed at least six attempted pairs before exclusions; fewer clean pairs survived at the noisy points. Shared-host load and a small sample limit these results. The tables give medians [min–max]; the timing decision also requires three clean blocks and a 95% interval from the independent block means. An interval crossing the 5% review boundary is inconclusive.
| Lane | Workload / slots | Windows each | 0.4 completions/s [range] | 0.5 completions/s [range] | Median change | Timing decision |
|---|---|---|---|---|---|---|
| polling | noop / 1 | 6 / 6 | 68.59 [61.44–76.87] | 66.59 [55.53–69.42] | -2.92% | inconclusive |
| polling | noop / 16 | 6 / 6 | 390.60 [309.04–434.42] | 342.23 [324.74–355.58] | -12.38% | inconclusive |
| polling | noop / 64 | 6 / 6 | 679.79 [649.49–703.71] | 556.75 [535.50–564.14] | -18.10% | regression |
| polling | workflow / 16 | 6 / 6 | 31.54 [29.29–33.40] | 27.38 [25.59–28.39] | -13.19% | regression |
| polling | workflow / 64 | 6 / 6 | 44.80 [42.89–49.49] | 46.84 [41.80–50.97] | +4.56% | inconclusive |
| sqs | noop / 64 | 4 / 4 | 506.41 [494.70–526.43] | 453.20 [426.20–487.34] | -10.51% | inconclusive |
| sqs | workflow / 1 | 2 / 2 | 5.65 [5.60–5.70] | 5.35 [5.30–5.40] | -5.32% | inconclusive |
| sqs | workflow / 2 | 2 / 2 | 10.60 [10.40–10.80] | 9.90 [9.80–10.00] | -6.60% | inconclusive |
| sqs | workflow / 4 | 2 / 2 | 15.25 [15.20–15.30] | 14.40 [14.40–14.40] | -5.58% | inconclusive |
| sqs | workflow / 8 | 2 / 2 | 20.09 [20.09–20.10] | 18.75 [18.70–18.80] | -6.70% | inconclusive |
| sqs | workflow / 16 | 4 / 4 | 22.24 [20.90–22.70] | 19.94 [19.59–21.40] | -10.36% | inconclusive |
| sqs | workflow / 32 | 2 / 2 | 30.89 [29.89–31.89] | 28.44 [28.09–28.79] | -7.93% | inconclusive |
| sqs | workflow / 64 | 4 / 4 | 34.98 [31.38–35.38] | 31.68 [30.25–32.67] | -9.42% | inconclusive |
No clean ABBA block survived for: polling workflow at 1 slots, polling workflow at 2 slots, polling workflow at 4 slots, polling workflow at 8 slots, polling workflow at 32 slots. Those attempted points are inconclusive and omitted from the numeric tables. Workflow completions count parent workflows, each including three children. No-op completions count individual tasks. CPU is worker-process CPU per completion; it excludes PostgreSQL and Ministack CPU. Latency cells below are 0.4 → 0.5 medians of each window’s percentile. No-op latency runs from saved creation to finish, so it includes prequeue age and queue wait; it does not isolate drain or handler latency.
| Lane | Workload / slots | p50 ms | p95 ms | p99 ms | Worker CPU ms/completion |
|---|---|---|---|---|---|
| polling | noop / 1 | 7470.5 → 8329.0 | 14027.5 → 14613.5 | 14655.0 → 15212.5 | 6.711 → 7.183 |
| polling | noop / 16 | 6939.5 → 7263.0 | 10174.5 → 11602.0 | 10481.5 → 12027.0 | 1.778 → 2.127 |
| polling | noop / 64 | 9551.5 → 9451.5 | 12004.0 → 14685.5 | 12214.0 → 15013.0 | 1.362 → 1.695 |
| polling | workflow / 16 | 1029.5 → 1141.0 | 1128.0 → 1225.0 | 1160.0 → 1263.0 | 32.684 → 37.531 |
| polling | workflow / 64 | 2641.0 → 3050.5 | 2881.0 → 3256.5 | 2939.0 → 3312.5 | 24.336 → 23.244 |
| sqs | noop / 64 | 10543.0 → 2384.0 | 17628.0 → 2469.5 | 18305.5 → 2482.5 | 2.072 → 2.370 |
| sqs | workflow / 1 | 354.5 → 370.0 | 461.5 → 489.0 | 499.5 → 543.0 | 123.202 → 136.096 |
| sqs | workflow / 2 | 371.5 → 404.5 | 477.5 → 501.0 | 514.0 → 536.0 | 82.934 → 88.942 |
| sqs | workflow / 4 | 514.5 → 554.5 | 625.5 → 653.5 | 665.5 → 682.0 | 65.269 → 70.649 |
| sqs | workflow / 8 | 789.5 → 846.0 | 912.5 → 957.5 | 969.0 → 992.5 | 52.408 → 56.578 |
| sqs | workflow / 16 | 1403.5 → 1578.5 | 1563.5 → 1715.0 | 1656.5 → 1775.5 | 51.953 → 56.898 |
| sqs | workflow / 32 | 2059.0 → 2217.5 | 2231.0 → 2359.0 | 2290.0 → 2417.0 | 36.655 → 40.566 |
| sqs | workflow / 64 | 3577.5 → 3941.0 | 3943.0 → 4380.5 | 4060.0 → 4487.0 | 32.174 → 34.693 |
The polling control read remains a measured extra request per claim batch: no-op SQL calls at 64 slots rose from 0.2195 to 0.2526 per task. This is a likely contributor to the polling regressions; the comparison includes all 0.5 changes and does not isolate that request’s throughput cost. Inconclusive rows establish neither a gain nor a regression. All retained windows passed their durable correctness audits. These local results do not establish AWS capacity.
PostgreSQL polling
The September 8, 2026 polling matrix measured source revision 192cc48. It times prequeued tasks whose handlers do no work. The timer ends after Runlane saves the successful result. Durable observations were off, which is the default. Each task still kept its run and event history.
| Processes × slots per process | Payload | Measured tasks per repetition | Tasks/s | SQL calls/task | Worker CPU ms/task | PostgreSQL CPU ms/task | Execution WAL bytes/task |
|---|---|---|---|---|---|---|---|
| 1 × 1 | Small | 1,000 | 63.44 | 7.0030 | 7.650 | 5.695 | 14,926 |
| 1 × 16 | Small | 4,000 | 337.74 | 0.4383 | 2.297 | 1.153 | 13,981 |
| 1 × 64 | Small | 8,000 | 651.95 | 0.2195 | 1.563 | 1.032 | 13,966 |
| 1 × 16 | 8 KiB | 1,000 | 288.90 | 0.4410 | 3.014 | 1.421 | 13,736 |
| 8 × 16 | Small | 12,000 | 2,459.80 | 0.4395 | 1.742 | 0.642 | 13,571 |
When tasks run at the same time, Runlane groups their storage work into bounded batches. This is why the rows with more concurrency use fewer SQL calls per task. At 1 × 1, there is no other work to share a batch.
PostgreSQL polling compared with pg-boss
The closest match used eight processes with 16 execution slots per process. In this local no-op test, Runlane reached 94.5% of the pg-boss harness's throughput.
| Engine | Processes × slots | Completions/s | SQL calls/completion | Worker CPU ms/completion | PostgreSQL CPU ms/completion | Execution WAL bytes/completion |
|---|---|---|---|---|---|---|
| Runlane | 8 × 16 | 2,459.80 | 0.4395 | 1.742 | 0.642 | 13,571 |
| pg-boss 12.30.0 | 8 × 16 | 2,602.99 | 2.0430 | 0.574 | 1.676 | 879 |
Single-process results show a larger gap:
| Engine | Processes × slots | Completions/s | SQL calls/completion |
|---|---|---|---|
| Runlane | 1 × 16 | 337.74 | 0.4383 |
| pg-boss 12.30.0 | 1 × 16 | 1,700.58 | 2.0160 |
Runlane ran its full task lifecycle. The pg-boss test used public fetch({ batchSize: 1 }) and complete() loops from pg-boss 12.30.0. Runlane saves more lifecycle history. The test compares the overhead of both engines, but they do not store the same data.
At 8 × 16, Runlane made fewer SQL calls and used less PostgreSQL CPU. It also used about three times the worker CPU and wrote 15 times the WAL. Worker CPU and write volume were the largest measured gaps.
Local SQS transport
A separate September 2026 test measured the built SQS adapter from source revision 2a6b697 (September 7), without the Runlane lifecycle or Postgres. It used Ministack on the same host.
| Workload | Topology | Messages/s |
|---|---|---|
| Publish in native batches of 10 | One process | About 5,917 |
| Publish one message at a time | One process, serial | About 479 |
| Short consume run | One process, 10 slots | 1,258 |
| Short consume run | One process, 32 slots | 2,606 |
| Longer consume runs | One process, 10–32 slots | 549–705 |
| Longer consume runs | Four processes, 8–10 slots each | 1,406–1,496 |
| FIFO consume, one message group | One process | 228 |
| FIFO consume, 16 message groups | One process | 1,811 |
The short consume runs used 2,000 messages. The longer runs used 10,000. The short rates fell when Ministack had to sustain the load, so they are burst results. All four-process runs completed without replay. Full native batches needed about 100 receive calls and 100 delete calls per 1,000 messages.
The publish result shows why batch fill matters: one ten-entry request carries ten messages instead of one. The FIFO result shows a different limit. One message group is serial by design, while independent groups can run at the same time.
These numbers show that the adapter uses SQS batching and ordering correctly. They do not predict AWS SQS throughput.
Local PostgreSQL with SQS
The full PostgreSQL/SQS lane was also tested with local Ministack. Ministack accepts the AWS SQS API, but it does not include AWS network latency, quotas, or service limits.
This September 2026 test used source revision 91f3e84 (September 8), a live observer, and five durable observations per task. It used one process, 64 worker slots, and 1,000 prequeued no-op tasks. Unlike the polling test, its timer included worker startup and shutdown. The values below are medians of two runs. They describe the measured configuration, which differs from the default profile.
| Tasks/s | SQL calls/task | Worker CPU ms/task | Receives per 1,000 tasks | Deletes per 1,000 tasks |
|---|---|---|---|---|
| 205.26 | 3.9170 | 5.918 | 137 | 132 |
Runlane can receive and delete up to ten SQS messages in one request. This is why 1,000 tasks needed far fewer than 1,000 receive and delete requests. The receive count includes empty requests. Both measured runs completed every task once, with no transaction callback replays or SQL rollbacks.
Eager enqueue was measured on its own at 38.55 tasks/s and 14 SQL calls per task. This test used a live observer and one isolated trigger per task, so every publish contained one message. It did not measure concurrent publish batching. The SQL count is a measured result, not a fixed cost per enqueued task.
Local test environment
| Setting | Value |
|---|---|
| CPU | Intel Xeon Gold 6132, 8 vCPUs |
| Memory | 16 GB |
| Node.js | 24.18.0 |
| PostgreSQL | 16.14 on the same host |
| SQS service | Local Ministack |
| Connection pool | Maximum 10 connections per process |
| Polling workload | Prequeued no-op handlers; Small and 8 KiB payload cases |
| PostgreSQL/SQS workload | Prequeued no-op handlers with small payloads |
| SQS transport workload | Direct publishes or preloaded messages without the Runlane lifecycle |
| Polling timer | Execution only; enqueue, startup, warmup, verification, and shutdown excluded |
| PostgreSQL/SQS timer | Worker startup through shutdown; enqueue measured separately |
Each polling value is the median of two runs. The polling matrix completed all 52,000 measured tasks exactly once. It had no transaction callback replays, SQL rollbacks, or throttling.
These tests ran for tens of seconds on one shared host. They compare code paths under fixed conditions. They do not prove production capacity, latency, a service-level objective, an Aurora cost, or AWS SQS performance. SQL calls are not database I/O charges. WAL bytes are not Aurora billed I/O.
AWS deployment check
The September 8, 2026 AWS check used base source a0116a8 plus example-only benchmark tasks and a harness. The deployment used PostgreSQL 17 on db.t4g.micro, a maximum of 79 database connections, Lambda batch size 10, and one small Fargate worker. The cap-2 and cap-4 rows below were separate event-source settings; both used an application pool maximum of two. The load generator ran outside AWS. Producers, consumers, maintenance, and application queries shared the same database.
This setup reached deployment limits before the test found a Runlane or SQS limit. It does not prove that no later limit exists.
| Deployment | Durable result | First limit observed |
|---|---|---|
| Lambda without an event-source concurrency cap, application pool max 10 | 188 of 200 runs succeeded; 12 failed after retries | 51 concurrent Lambda invocations drove RDS to 77 of 79 connections |
| Lambda cap 2, application pool max 2 | 640 of 640 runs succeeded, with no retries; median 14.57 completions/s | No failure in the measured run; RDS peaked at 27 connections |
| Lambda cap 4, application pool max 2 | 1,840 of 1,840 runs succeeded, with no retries | RDS peaked at 55 connections; throughput and latency became unstable under higher offered load |
| Bounded Fargate queue: concurrency 5 and maintenance once per minute | A 40-run warm-up took 489 seconds; handlers took about 0.5–0.7 seconds each | In the measured source, only maintenance admitted bounded runs: five per one-minute pass |
The Lambda workload read one application row with Prisma, waited 50 milliseconds to simulate an external provider, saved a durable step, and updated the row. It was not the no-op workload used in the local polling table.
The cap-2 rate is not a Runlane, Lambda, or SQS ceiling. It is the result of one small example deployment. A cap of two Lambda invocations can still run up to 20 records at once when both invocations receive full ten-record batches.
The failed uncapped run also had zero Lambda platform errors. The handler returned valid partial batch responses while some durable Runlane runs retried and later failed. Production checks must join AWS metrics with exact run states, attempts, retries, duplicates, and dead-letter queue state.
The Fargate result measures maintenance-only admission in that source and deployment. SQS was often empty while runs waited in Postgres for the next maintenance pass. It does not measure Fargate worker speed. It also does not describe eager runtimes, which admit ready bounded work after a commit and after a released slot; see immediate task dispatch.
These checks do not establish sustained AWS capacity or cost per million tasks. A capacity test must measure these paths separately:
- Ingress with consumers stopped.
- Prequeued Lambda drain with producers stopped.
- Prequeued long-running worker drain with producers stopped.
- Continuous end-to-end traffic.
- Bounded queue refill and recovery.
The load generator must run in the same AWS region and send work at a fixed rate. The database must have stable, non-burstable compute for a capacity claim. Each case must account for every accepted run. See Deploy with Postgres and SQS for sizing formulas.
Metric definitions
| Metric | Meaning |
|---|---|
| Tasks/s or completions/s | Runs that reached the measured success point each second |
| SQL calls/task | PostgreSQL requests made during the measured window, divided by completed tasks |
| Worker CPU ms/task | CPU time used by all measured worker processes, divided by completed tasks |
| PostgreSQL CPU ms/task | Database process CPU time during the measured window, divided by completed tasks |
| Execution WAL bytes/task | PostgreSQL write-ahead log growth during execution, divided by completed tasks |
Small means the compact input used by the no-op benchmark. The 8 KiB case adds 8,192 bytes of deterministic text.
WAL measures database change volume. It is not the same as stored bytes or an Aurora I/O charge. SQL calls count client-server requests, which may contain work for many tasks when Runlane batches lifecycle changes.
Other adapters
Measure each storage and transport combination separately. Each system has different atomic operations, batch limits, network costs, and durability rules.
The storage and transport contracts remain the common boundary. Each adapter can use its native batch and atomic features while core keeps ownership of the task lifecycle. Every adapter needs its own single-process, multiprocess, payload, failure, and sustained-load results before making performance claims.