Skip to Content
Runlane
Reference

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.

TestWhat it measuresWhat it does not measure
PostgreSQL pollingThe full Runlane lifecycle for prequeued no-op tasksEnqueue speed or application work
Local SQS transportSQS publish, receive, ordering, and settlement through MinistackAWS service capacity or network latency
Local PostgreSQL/SQS laneThe full lane through Postgres and MinistackAWS Lambda or RDS capacity
AWS deployment checkOne small example deployment and its admission limitsRunlane'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.

LaneWorkload / slotsRetained blocksWindows each0.4 rate [range]Retained 0.5 rate [range]Paired change [95% interval]Decision
pollingnoop / 6412653.36 [637.10–669.61]546.05 [534.74–557.36]-16.42%; no intervalinconclusive
pollingworkflow / 162428.90 [28.79–29.40]26.59 [26.20–27.38]-7.95% [-8.13%, -7.77%]inconclusive
pollingworkflow / 643644.79 [43.80–46.38]38.39 [38.35–38.40]-14.87% [-16.76%, -12.94%]regression
sqsworkflow / 163621.59 [20.20–22.49]20.24 [19.69–20.99]-4.81% [-13.57%, +4.84%]inconclusive
sqsworkflow / 643633.62 [31.39–34.67]30.34 [29.48–31.17]-9.42% [-15.27%, -3.18%]inconclusive
LaneWorkload / slotsWorker CPU ms/completion [range], 0.4 → retained 0.5SQL requests/completion [range], 0.4 → retained 0.5
pollingnoop / 641.422 [1.384–1.460] → 1.733 [1.710–1.756]0.2195 [0.2195–0.2195] → 0.2526 [0.2526–0.2526]
pollingworkflow / 1633.728 [33.603–33.847] → 38.054 [36.628–38.515]48.5451 [47.8724–48.6122] → 49.5925 [48.7409–50.4618]
pollingworkflow / 6424.895 [23.933–25.562] → 29.103 [28.887–29.324]24.5223 [24.3175–25.4709] → 26.7070 [26.2917–27.9141]
sqsworkflow / 1652.326 [51.298–54.734] → 55.745 [53.753–57.500]60.4205 [59.4756–61.6832] → 61.0834 [59.8667–61.5888]
sqsworkflow / 6435.073 [33.648–36.709] → 38.894 [37.465–40.189]29.9449 [29.5043–30.6154] → 29.8465 [29.5413–30.7186]
LaneWorkload / slotsp50 / p95 / p99 ms, 0.4 → retained 0.5Paired p95 change [95% interval]Decision
pollingnoop / 6410297.5 → 9966.5 / 12558.5 → 14973.5 / 12663.0 → 15325.0+19.23%; no intervalinconclusive
pollingworkflow / 161081.0 → 1179.0 / 1172.0 → 1263.5 / 1206.5 → 1312.0+7.55% [-33.07%, +72.84%]inconclusive
pollingworkflow / 642903.0 → 3192.5 / 3135.0 → 3389.0 / 3207.0 → 3569.0+9.91% [+0.15%, +20.63%]inconclusive
sqsworkflow / 161469.0 → 1551.0 / 1647.5 → 1778.0 / 1709.0 → 1878.0+7.02% [+1.73%, +12.59%]inconclusive
sqsworkflow / 643701.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 workflow0.4 polling0.5 polling0.4 PostgreSQL/SQS0.5 PostgreSQL/SQS
SQL calls31.9131.4573.9074.88
Relation WAL bytes, excluding full-page images115,382116,205154,949156,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.

LaneWorkload / slotsWindows each0.4 completions/s [range]0.5 completions/s [range]Median changeTiming decision
pollingnoop / 16 / 668.59 [61.44–76.87]66.59 [55.53–69.42]-2.92%inconclusive
pollingnoop / 166 / 6390.60 [309.04–434.42]342.23 [324.74–355.58]-12.38%inconclusive
pollingnoop / 646 / 6679.79 [649.49–703.71]556.75 [535.50–564.14]-18.10%regression
pollingworkflow / 166 / 631.54 [29.29–33.40]27.38 [25.59–28.39]-13.19%regression
pollingworkflow / 646 / 644.80 [42.89–49.49]46.84 [41.80–50.97]+4.56%inconclusive
sqsnoop / 644 / 4506.41 [494.70–526.43]453.20 [426.20–487.34]-10.51%inconclusive
sqsworkflow / 12 / 25.65 [5.60–5.70]5.35 [5.30–5.40]-5.32%inconclusive
sqsworkflow / 22 / 210.60 [10.40–10.80]9.90 [9.80–10.00]-6.60%inconclusive
sqsworkflow / 42 / 215.25 [15.20–15.30]14.40 [14.40–14.40]-5.58%inconclusive
sqsworkflow / 82 / 220.09 [20.09–20.10]18.75 [18.70–18.80]-6.70%inconclusive
sqsworkflow / 164 / 422.24 [20.90–22.70]19.94 [19.59–21.40]-10.36%inconclusive
sqsworkflow / 322 / 230.89 [29.89–31.89]28.44 [28.09–28.79]-7.93%inconclusive
sqsworkflow / 644 / 434.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.

LaneWorkload / slotsp50 msp95 msp99 msWorker CPU ms/completion
pollingnoop / 17470.5 → 8329.014027.5 → 14613.514655.0 → 15212.56.711 → 7.183
pollingnoop / 166939.5 → 7263.010174.5 → 11602.010481.5 → 12027.01.778 → 2.127
pollingnoop / 649551.5 → 9451.512004.0 → 14685.512214.0 → 15013.01.362 → 1.695
pollingworkflow / 161029.5 → 1141.01128.0 → 1225.01160.0 → 1263.032.684 → 37.531
pollingworkflow / 642641.0 → 3050.52881.0 → 3256.52939.0 → 3312.524.336 → 23.244
sqsnoop / 6410543.0 → 2384.017628.0 → 2469.518305.5 → 2482.52.072 → 2.370
sqsworkflow / 1354.5 → 370.0461.5 → 489.0499.5 → 543.0123.202 → 136.096
sqsworkflow / 2371.5 → 404.5477.5 → 501.0514.0 → 536.082.934 → 88.942
sqsworkflow / 4514.5 → 554.5625.5 → 653.5665.5 → 682.065.269 → 70.649
sqsworkflow / 8789.5 → 846.0912.5 → 957.5969.0 → 992.552.408 → 56.578
sqsworkflow / 161403.5 → 1578.51563.5 → 1715.01656.5 → 1775.551.953 → 56.898
sqsworkflow / 322059.0 → 2217.52231.0 → 2359.02290.0 → 2417.036.655 → 40.566
sqsworkflow / 643577.5 → 3941.03943.0 → 4380.54060.0 → 4487.032.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 processPayloadMeasured tasks per repetitionTasks/sSQL calls/taskWorker CPU ms/taskPostgreSQL CPU ms/taskExecution WAL bytes/task
1 × 1Small1,00063.447.00307.6505.69514,926
1 × 16Small4,000337.740.43832.2971.15313,981
1 × 64Small8,000651.950.21951.5631.03213,966
1 × 168 KiB1,000288.900.44103.0141.42113,736
8 × 16Small12,0002,459.800.43951.7420.64213,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.

EngineProcesses × slotsCompletions/sSQL calls/completionWorker CPU ms/completionPostgreSQL CPU ms/completionExecution WAL bytes/completion
Runlane8 × 162,459.800.43951.7420.64213,571
pg-boss 12.30.08 × 162,602.992.04300.5741.676879

Single-process results show a larger gap:

EngineProcesses × slotsCompletions/sSQL calls/completion
Runlane1 × 16337.740.4383
pg-boss 12.30.01 × 161,700.582.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.

WorkloadTopologyMessages/s
Publish in native batches of 10One processAbout 5,917
Publish one message at a timeOne process, serialAbout 479
Short consume runOne process, 10 slots1,258
Short consume runOne process, 32 slots2,606
Longer consume runsOne process, 10–32 slots549–705
Longer consume runsFour processes, 8–10 slots each1,406–1,496
FIFO consume, one message groupOne process228
FIFO consume, 16 message groupsOne process1,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/sSQL calls/taskWorker CPU ms/taskReceives per 1,000 tasksDeletes per 1,000 tasks
205.263.91705.918137132

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

SettingValue
CPUIntel Xeon Gold 6132, 8 vCPUs
Memory16 GB
Node.js24.18.0
PostgreSQL16.14 on the same host
SQS serviceLocal Ministack
Connection poolMaximum 10 connections per process
Polling workloadPrequeued no-op handlers; Small and 8 KiB payload cases
PostgreSQL/SQS workloadPrequeued no-op handlers with small payloads
SQS transport workloadDirect publishes or preloaded messages without the Runlane lifecycle
Polling timerExecution only; enqueue, startup, warmup, verification, and shutdown excluded
PostgreSQL/SQS timerWorker 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.

DeploymentDurable resultFirst limit observed
Lambda without an event-source concurrency cap, application pool max 10188 of 200 runs succeeded; 12 failed after retries51 concurrent Lambda invocations drove RDS to 77 of 79 connections
Lambda cap 2, application pool max 2640 of 640 runs succeeded, with no retries; median 14.57 completions/sNo failure in the measured run; RDS peaked at 27 connections
Lambda cap 4, application pool max 21,840 of 1,840 runs succeeded, with no retriesRDS peaked at 55 connections; throughput and latency became unstable under higher offered load
Bounded Fargate queue: concurrency 5 and maintenance once per minuteA 40-run warm-up took 489 seconds; handlers took about 0.5–0.7 seconds eachIn 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:

  1. Ingress with consumers stopped.
  2. Prequeued Lambda drain with producers stopped.
  3. Prequeued long-running worker drain with producers stopped.
  4. Continuous end-to-end traffic.
  5. 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

MetricMeaning
Tasks/s or completions/sRuns that reached the measured success point each second
SQL calls/taskPostgreSQL requests made during the measured window, divided by completed tasks
Worker CPU ms/taskCPU time used by all measured worker processes, divided by completed tasks
PostgreSQL CPU ms/taskDatabase process CPU time during the measured window, divided by completed tasks
Execution WAL bytes/taskPostgreSQL 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.

On this page