From e61771077cad6ee52c9f75e47766f756af7cf6c8 Mon Sep 17 00:00:00 2001 From: Diego Resendez Date: Tue, 1 Sep 2026 21:26:27 -0500 Subject: [PATCH] docs(bench): refresh the tables and record what moved between releases MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The tables were measured on 2026-07-07 at `fe1831a`, two releases ago. Re-measured at `8c5855c` with the runtime matrix included, every row under 1.2% CV. The headline is not in the cross-framework tables. green-tea sits within 2% of fastify on `hello` and `param` and second only to `raw-http` on `validate` — but the same application on Deno serves 153,408 req/s against Node's 90,976, and on Bun 131,674. Node's own `http` module with no framework manages 119,357. The runtime-neutral boundary that costs on Node is what makes those rows possible, and until this run nothing measured them. The notes below the marker say what a table cannot. In order: the release gate — this release is neutral against `26.8.0-beta.1` on every scenario but the CORS preflight, which gains 2.7%; the interval against `26.7`, which is roughly −5% to −8% and is **not** a regression, because July matched routes by splitting a string in one flat file and had no constraints, no specificity, no correlation and one adapter; the figures recorded in the code when each change landed, including one that reached 45% of a request before it was fixed; and what is still unattributed, which is most of it. That last part is the point. Three candidates were measured and none of them explain the interval: `randomUUID` is 0.7% and lands within noise, replacing specificity ranking with July's first-match-wins is noise, and the bundle versus the source is noise. A section that explained everything would be a defence. This one says what was found and what was not. The measurements were always there — `core.ts`, `bus.ts`, `pipeline.ts`, `headers.ts`, `body.ts`, `router.ts` all carry them, with alternatives compared and rejected. They cite different baselines, 4.4 µs to 10.19 µs, because each was taken against whatever a request cost that day, so they cannot be added up. What was missing was never rigour. It was a number per version against a fixed baseline, in the file where the question gets asked. Signed-off-by: Diego Resendez --- BENCHMARKS.md | 195 ++++++++++++++++++++----- bench/results.json | 350 ++++++++++++++++++++++++++------------------- 2 files changed, 367 insertions(+), 178 deletions(-) diff --git a/BENCHMARKS.md b/BENCHMARKS.md index d5d02e4..644bc89 100644 --- a/BENCHMARKS.md +++ b/BENCHMARKS.md @@ -4,14 +4,14 @@ ## Environment -- **Date**: 2026-07-07 -- **Commit**: fe1831a +- **Date**: 2026-09-02 +- **Commit**: 8c5855c - **Node**: v22.22.2 - **OS**: darwin - **CPU**: Apple M4 Max (16 cores) - **RAM**: 69 GB - **Core-pinned**: no -- **autocannon config**: 100 connections, 5s duration, 3 runs (1 warmup discarded), pipelining 1 +- **autocannon config**: 100 connections, 10s duration, 5 runs (1 warmup discarded), pipelining 1 > **A note on honesty: this is a single-box benchmark.** All frameworks were driven with autocannon over > loopback on the same machine, sharing the same cores as the server processes they measured. That @@ -29,64 +29,74 @@ | Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s | | --- | --- | --- | --- | --- | --- | --- | -| raw-http | 115,398 | 0.00 | 1.00 | 1.00 | 0.3% | 114,822–115,539 | -| green-tea | 98,093 | 0.00 | 1.00 | 2.00 | 0.3% | 98,054–98,669 | -| nestjs-fastify | 95,034 | 1.00 | 1.00 | 2.00 | 0.5% | 94,240–95,264 | -| fastify | 86,765 | 1.00 | 2.00 | 2.00 | 0.3% | 86,496–87,123 | -| express | 24,366 | 3.00 | 5.00 | 8.00 | 0.2% | 24,283–24,418 | -| nestjs-express | 21,762 | 4.00 | 6.00 | 10.00 | 0.4% | 21,698–21,896 | +| raw-http | 119,357 | 0.00 | 1.00 | 1.00 | 0.4% | 118,560–120,067 | +| nestjs-fastify | 98,039 | 0.00 | 1.00 | 2.00 | 1.2% | 96,073–99,680 | +| fastify | 89,097 | 1.00 | 1.00 | 2.00 | 0.1% | 88,864–89,207 | +| green-tea | 87,473 | 1.00 | 2.00 | 2.00 | 0.3% | 86,903–87,607 | +| express | 24,677 | 3.00 | 5.00 | 8.00 | 0.2% | 24,647–24,769 | +| nestjs-express | 21,879 | 4.00 | 6.00 | 9.00 | 0.2% | 21,845–21,953 | ### Route param | Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s | | --- | --- | --- | --- | --- | --- | --- | -| raw-http | 116,333 | 0.00 | 1.00 | 1.00 | 0.2% | 115,974–116,410 | -| green-tea | 93,434 | 1.00 | 2.00 | 2.00 | 0.2% | 93,152–93,613 | -| nestjs-fastify | 89,312 | 1.00 | 2.00 | 2.00 | 0.1% | 89,235–89,530 | -| fastify | 86,278 | 1.00 | 2.00 | 2.00 | 0.3% | 86,138–86,765 | -| express | 23,835 | 3.00 | 5.00 | 8.00 | 0.5% | 23,803–24,046 | -| nestjs-express | 20,955 | 4.00 | 6.00 | 11.00 | 0.6% | 20,949–21,202 | +| raw-http | 120,905 | 0.00 | 1.00 | 1.00 | 0.5% | 119,927–121,713 | +| nestjs-fastify | 91,849 | 1.00 | 1.00 | 2.00 | 0.3% | 91,825–92,599 | +| fastify | 88,317 | 1.00 | 1.00 | 2.00 | 0.2% | 87,997–88,439 | +| green-tea | 86,595 | 1.00 | 2.00 | 2.00 | 0.2% | 86,368–86,880 | +| express | 24,200 | 3.00 | 5.00 | 8.00 | 0.2% | 24,158–24,260 | +| nestjs-express | 21,182 | 4.00 | 6.00 | 9.00 | 0.7% | 21,150–21,518 | ### Pipeline (3 steps) (approximation) | Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s | | --- | --- | --- | --- | --- | --- | --- | -| raw-http | 113,491 | 0.00 | 1.00 | 1.00 | 0.8% | 112,531–114,810 | -| nestjs-fastify | 87,328 | 1.00 | 2.00 | 2.00 | 0.4% | 86,867–87,661 | -| fastify | 85,024 | 1.00 | 2.00 | 2.00 | 0.3% | 84,512–85,178 | -| green-tea | 84,896 | 1.00 | 2.00 | 2.00 | 0.5% | 84,243–85,267 | -| express | 23,950 | 3.00 | 5.00 | 8.00 | 0.2% | 23,902–24,011 | -| nestjs-express | 20,824 | 4.00 | 6.00 | 11.00 | 0.1% | 20,805–20,878 | +| raw-http | 118,996 | 0.00 | 1.00 | 1.00 | 0.3% | 118,583–119,584 | +| nestjs-fastify | 89,527 | 1.00 | 2.00 | 2.00 | 1.0% | 87,572–90,028 | +| fastify | 86,671 | 1.00 | 1.00 | 2.00 | 0.1% | 86,490–86,793 | +| green-tea | 80,079 | 1.00 | 2.00 | 2.00 | 0.2% | 80,026–80,375 | +| express | 24,325 | 3.00 | 5.00 | 8.00 | 0.2% | 24,281–24,407 | +| nestjs-express | 20,872 | 4.00 | 6.00 | 9.00 | 0.2% | 20,801–20,940 | ### POST JSON + validation | Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s | | --- | --- | --- | --- | --- | --- | --- | -| raw-http | 100,141 | 0.00 | 1.00 | 2.00 | 0.2% | 99,846–100,294 | -| green-tea | 77,178 | 1.00 | 2.00 | 2.00 | 0.1% | 77,126–77,254 | -| fastify | 63,722 | 1.00 | 2.00 | 3.00 | 0.1% | 63,574–63,760 | -| nestjs-fastify | 59,146 | 1.00 | 3.00 | 3.00 | 0.3% | 59,005–59,376 | -| express | 20,098 | 4.00 | 6.00 | 12.00 | 0.2% | 20,056–20,174 | -| nestjs-express | 18,856 | 5.00 | 7.00 | 30.00 | 0.5% | 18,853–19,067 | +| raw-http | 104,288 | 0.00 | 1.00 | 1.00 | 0.4% | 103,776–104,916 | +| green-tea | 70,298 | 1.00 | 2.00 | 3.00 | 1.0% | 68,972–70,607 | +| fastify | 65,905 | 1.00 | 2.00 | 3.00 | 0.3% | 65,725–66,367 | +| nestjs-fastify | 63,318 | 1.00 | 2.00 | 3.00 | 0.9% | 62,454–63,747 | +| express | 20,297 | 4.00 | 6.00 | 10.00 | 0.5% | 20,158–20,414 | +| nestjs-express | 18,788 | 5.00 | 7.00 | 10.00 | 0.3% | 18,684–18,862 | ## Step-scaling (green-tea) | Path | Steps | req/s | | --- | --- | --- | -| /steps/0 | 0 | 92,282 | -| /steps/3 | 3 | 81,530 | -| /steps/5 | 5 | 71,994 | +| /steps/0 | 0 | 88,108 | +| /steps/3 | 3 | 79,951 | +| /steps/5 | 5 | 74,127 | -Each additional pipeline step costs roughly 4,058 req/s (-22.0% over 5 steps), on this box. +Each additional pipeline step costs roughly 2,796 req/s (-15.9% over 5 steps), on this box. +## green-tea across runtimes + +| Scenario | node | deno | bun | +| --- | --- | --- | --- | +| JSON hello (overhead) | 90,976 | 153,408 | 131,674 | +| Route param | 88,905 | 146,368 | 126,909 | +| Pipeline (3 steps) | 82,045 | 136,256 | 117,489 | +| POST JSON + validation | 72,236 | 106,662 | 95,124 | + +Same application, same built bundle, same box — only the runtime differs. Read across a row, never against the cross-framework tables above: those measure other frameworks on Node, and nobody ran fastify on Bun here. A runtime that is not installed is absent rather than zero. ## Cost of secure-by-default (green-tea) | Label | req/s | | --- | --- | -| security:false (parity) | 98,093 | -| security:true (default) | 92,998 | +| security:false (parity) | 87,473 | +| security:true (default) | 83,773 | -The real cost of running secure-by-default (rather than the parity-mode `security:false` used above) is ~5.2% req/s on this box. +The real cost of running secure-by-default (rather than the parity-mode `security:false` used above) is ~4.2% req/s on this box. > Scope: this micro-bench currently measures the security-**headers** cost only (`security:false` vs > `security:true` on `/hello`). The incremental cost of `@body` validation and CORS is not separately @@ -116,3 +126,120 @@ The real cost of running secure-by-default (rather than the parity-mode `securit `ValidationPipe` / class-validator is **not** used — `/validate` performs the same manual field check as every other server (parity). The same parity controls apply: `etag` and `x-powered-by` are disabled on the underlying Express instance, and `keepAliveTimeout` is 5000 on both adapters. + + + +## What moved between releases + +These figures were measured per function and never per version. Every change on the request path +was benchmarked as it landed — the numbers are still in the code, cited below — but no one ran this +file between `26.7` and `26.9`, so nothing added them up. That is the gap this section and +`npm run bench:compare` exist to close. + +### The release gate: `26.8.0-beta.1` → `26.9.0-beta.1` + +Both trees measured on one box in one sitting, alternating which side ran first each round, sharing +one `node_modules` and one byte-identical server file. Medians of five rounds: + +| Scenario | 26.8.0-beta.1 | 26.9.0-beta.1 | Δ | +| --- | --- | --- | --- | +| hello | 91,343 | 90,371 | −1.1% | +| param | 88,113 | 87,921 | −0.2% | +| pipeline (3 steps) | 80,934 | 80,893 | −0.1% | +| validate (POST) | 72,340 | 72,241 | −0.1% | +| hello + security | 85,967 | 86,426 | +0.5% | +| hello + cors predicate | 82,609 | 83,401 | +1.0% | +| preflight + cors predicate | 112,055 | 115,069 | **+2.7%** | + +Every row but the last overlaps between the two sides and is noise. The preflight row does not: the +new tree wins all three rounds, which is where a `cors.origins` predicate stopped being evaluated +three times per request. + +That change is a call count, not a rate, and the benchmark's predicate is a `Set` lookup — so the +saving is invisible in req/s here and would be two or three network round trips in the lookup the +option exists for: + +| | per cross-origin GET | per preflight | +| --- | --- | --- | +| 26.8.0-beta.1 | 2 | 3 | +| 26.9.0-beta.1 | **1** | **1** | + +### Against `26.7`, and why it is not a regression + +The table this file carried until today was measured at `fe1831a`, before `26.8.0-beta.1` +shipped. Re-running +that tree today, under the same toolchain and dependencies, gives 94,403 req/s on `hello` and +93,361 on `param` against 89,527 and 85,839 for the current tree — roughly −5% and −8%. Against +`fastify` as a control, which moved +1.2% to +1.8% across the same scenarios, green-tea's ratio to +it fell 6.6% to 11.7%. + +**That number is real and it is not a regression, because it is not the same program.** July matched +routes by splitting the path and comparing segments, returning on the first hit, in one flat file. +It had no route constraints, no specificity ranking, no per-request correlation, no lifecycle +stream, and one adapter. It was fast the way something is fast before it does anything. + +What the interval bought, in the order it costs: a runtime-neutral request and response boundary, +which is what serves Deno, Bun and workerd from one core rather than one adapter; constraint and +specificity matching; a correlated event stream; and per-request identity. + +The first of those is now measurable, because the runtimes table above did not exist either. The +same boundary that costs on Node is what puts the same application on Deno at 153,408 req/s and Bun +at 131,674 against Node's 90,976 — and above the 119,357 that Node's own `http` module manages with +no framework at all. Whether the trade is worth it is the reader's call. This file's job is to say +what it cost and what it bought. + +### Figures recorded when each change landed + +Measured at the time, in the code, against a microbenchmark rather than this harness: + +| Where | Finding | +| --- | --- | +| `src/http/core.ts:63` | a per-request derivation that reached **45% of a whole request** before it was fixed | +| `src/http/core.ts:89` | six request-id generators compared; `crypto.randomUUID` at 76 ns was the fastest cross-runtime option, and the only alternatives that beat it are Node-only | +| `src/http/core.ts:229` | wrapping `dispatch` in a second async frame: 0.43 µs per request | +| `src/bus.ts:173` | spreading request identity into an event payload: ~197 ns on a two-step pipeline | +| `src/pipeline.ts:58` | one timestamp per step boundary instead of two: 25.2 ns against 45.3 ns per step | +| `src/http/headers.ts:30` | 146.4 ns against 55.9 ns for the same header answer | +| `src/http/body.ts:39` | 250 ns per request for a closure and the error context it captured | +| `src/http/router.ts:232` | per-segment decoding on a path nobody decodes: 95.8 ns for `/hello`, 342.7 ns for six segments | + +**These do not add up to the release delta, and cannot.** They cite different baselines — 4.4 µs, +4.5 µs, 10.19 µs — because each was taken against whatever a request cost on the day. A dozen +findings in nanoseconds against inconsistent references is a discussion, not a total. A version-level +number measured against a fixed baseline is what was missing, not rigour. + +### What is still unattributed + +Three candidates for the `26.7` → `26.9` interval were measured and none of them account for it: + +- **`crypto.randomUUID` per request** — removing it entirely lands within noise on every scenario, + and one row moves the wrong way. At 76 ns against a ~11 µs request it is ~0.7%, below what a load + test at this CV can resolve. +- **Specificity ranking in the matcher** — replacing it with July's first-match-wins is noise on all + four rows at this route-table size. +- **The bundle versus the TypeScript source** — every row overlaps, so the form the table loads does + not explain it either. + +No single culprit was found. The remaining candidates are the neutral request and response objects +and the several small per-request allocations around them, which is a shape that resists a single +measurement. + +## What this file does not measure + +- **Route-table width was invisible until `26.9`.** Every matcher cost scales with how many + candidates a request walks past, and the cross-framework tables use six routes — so any matcher + change measures as noise there regardless of its size. `npm run bench:compare` carries 50- and + 200-route cases for this reason. Settling route ranking when the table is built rather than per + request is worth nothing at six routes, +3.4% at fifty, and **+12% to +14.9% at two hundred**, + across twelve rounds without a crossing sample. +- **Boot time is absent.** Independent providers began booting concurrently in `26.9`: three + providers with no edges and 200 ms of work each went from 616 ms to 210 ms. No table here shows it. +- **Streaming is absent.** Every scenario is a buffered response. SSE framing, the encoder's + per-item work, and the stream lifecycle events are not exercised. +- **The cross-framework tables are Node-only**, and they load green-tea from `src/` through `tsx` + while the other frameworks load their published JavaScript. Measured today, that difference is + within noise — but it is a difference, and the runtimes table above avoids it by loading the built + bundle on all three. +- **The runtimes table compares each runtime's HTTP server, not its JavaScript engine.** `Deno.serve` + and `Bun.serve` are native stacks; Node's `http` is JavaScript. "green-tea on this runtime" is the + claim, and it is the one an application actually experiences. diff --git a/bench/results.json b/bench/results.json index 73d408c..0182736 100644 --- a/bench/results.json +++ b/bench/results.json @@ -1,7 +1,7 @@ { "env": { - "date": "2026-07-07", - "commit": "fe1831a", + "date": "2026-09-02", + "commit": "8c5855c", "node": "v22.22.2", "os": "darwin", "cpu": "Apple M4 Max (16 cores)", @@ -10,8 +10,8 @@ }, "config": { "conns": 100, - "duration": 5, - "runs": 3, + "duration": 10, + "runs": 5, "warmup": 1, "pipelining": 1 }, @@ -23,11 +23,11 @@ { "framework": "raw-http", "reqSec": { - "median": 115398.4, - "min": 114822.4, - "max": 115539.2, - "stddev": 310.09010876768724, - "cv": 0.0026905088104554075 + "median": 119357.1, + "min": 118560, + "max": 120066.91, + "stddev": 484.9030139151553, + "cv": 0.0040636145553490976 }, "p50": 0, "p99": 1, @@ -36,24 +36,24 @@ { "framework": "fastify", "reqSec": { - "median": 86764.8, - "min": 86496, - "max": 87123.2, - "stddev": 256.9227813090051, - "cv": 0.002960121758353106 + "median": 89096.73, + "min": 88864, + "max": 89207.28, + "stddev": 111.97759400880093, + "cv": 0.001257219726589825 }, "p50": 1, - "p99": 2, + "p99": 1, "p999": 2 }, { "framework": "express", "reqSec": { - "median": 24366.4, - "min": 24283.2, - "max": 24417.6, - "stddev": 55.38455460585383, - "cv": 0.002273984274990166 + "median": 24677.1, + "min": 24646.55, + "max": 24768.73, + "stddev": 43.02015834466458, + "cv": 0.0017417832565876405 }, "p50": 3, "p99": 5, @@ -62,39 +62,39 @@ { "framework": "green-tea", "reqSec": { - "median": 98092.8, - "min": 98054.4, - "max": 98668.8, - "stddev": 281.0175795212842, - "cv": 0.002859589501804015 + "median": 87473.46, + "min": 86903.28, + "max": 87607.28, + "stddev": 280.84365746087286, + "cv": 0.0032155347907296527 }, - "p50": 0, - "p99": 1, + "p50": 1, + "p99": 2, "p999": 2 }, { "framework": "nestjs-express", "reqSec": { - "median": 21761.6, - "min": 21697.6, - "max": 21896, - "stddev": 82.67870880032535, - "cv": 0.0037952010918943873 + "median": 21878.55, + "min": 21845.1, + "max": 21952.73, + "stddev": 41.00873789816055, + "cv": 0.0018731606009975037 }, "p50": 4, "p99": 6, - "p999": 10 + "p999": 9 }, { "framework": "nestjs-fastify", "reqSec": { - "median": 95033.6, - "min": 94240, - "max": 95264, - "stddev": 438.6166536839312, - "cv": 0.00462452048886261 + "median": 98039.28, + "min": 96072.73, + "max": 99680, + "stddev": 1215.4038343760499, + "cv": 0.012396669934655963 }, - "p50": 1, + "p50": 0, "p99": 1, "p999": 2 } @@ -107,11 +107,11 @@ { "framework": "raw-http", "reqSec": { - "median": 116332.8, - "min": 115974.4, - "max": 116409.6, - "stddev": 189.66281191162406, - "cv": 0.001631663389130871 + "median": 120904.73, + "min": 119927.28, + "max": 121713.46, + "stddev": 658.0250991747977, + "cv": 0.005441723483024015 }, "p50": 0, "p99": 1, @@ -120,24 +120,24 @@ { "framework": "fastify", "reqSec": { - "median": 86278.4, - "min": 86137.6, - "max": 86764.8, - "stddev": 268.69839349476365, - "cv": 0.003110165492522174 + "median": 88317.1, + "min": 87997.1, + "max": 88439.28, + "stddev": 182.99174422907566, + "cv": 0.00207430857941761 }, "p50": 1, - "p99": 2, + "p99": 1, "p999": 2 }, { "framework": "express", "reqSec": { - "median": 23835.2, - "min": 23803.2, - "max": 24046.4, - "stddev": 107.89690552662897, - "cv": 0.004515472130491916 + "median": 24200, + "min": 24157.82, + "max": 24259.64, + "stddev": 39.43298619176589, + "cv": 0.0016290899720752198 }, "p50": 3, "p99": 5, @@ -146,11 +146,11 @@ { "framework": "green-tea", "reqSec": { - "median": 93433.6, - "min": 93152, - "max": 93612.8, - "stddev": 189.6628119116206, - "cv": 0.002030662686635119 + "median": 86594.91, + "min": 86368, + "max": 86880, + "stddev": 179.11650003279965, + "cv": 0.002068552609808656 }, "p50": 1, "p99": 2, @@ -159,27 +159,27 @@ { "framework": "nestjs-express", "reqSec": { - "median": 20955.2, - "min": 20948.8, - "max": 21201.6, - "stddev": 117.69157432317111, - "cv": 0.005594982425799189 + "median": 21181.82, + "min": 21149.82, + "max": 21517.82, + "stddev": 139.0670808494951, + "cv": 0.006540068168697097 }, "p50": 4, "p99": 6, - "p999": 11 + "p999": 9 }, { "framework": "nestjs-fastify", "reqSec": { - "median": 89312, - "min": 89235.2, - "max": 89529.6, - "stddev": 124.68598780759793, - "cv": 0.001395338811201841 + "median": 91848.73, + "min": 91825.46, + "max": 92599.28, + "stddev": 296.55679952413783, + "cv": 0.00322222064035544 }, "p50": 1, - "p99": 2, + "p99": 1, "p999": 2 } ] @@ -192,11 +192,11 @@ { "framework": "raw-http", "reqSec": { - "median": 113491.2, - "min": 112531.2, - "max": 114809.6, - "stddev": 933.9810324031724, - "cv": 0.008220892102882115 + "median": 118996.37, + "min": 118583.28, + "max": 119584, + "stddev": 341.82644850274596, + "cv": 0.002872466494470492 }, "p50": 0, "p99": 1, @@ -205,24 +205,24 @@ { "framework": "fastify", "reqSec": { - "median": 85024, - "min": 84512, - "max": 85177.6, - "stddev": 284.55819947576623, - "cv": 0.003351507726431956 + "median": 86670.55, + "min": 86490.19, + "max": 86792.73, + "stddev": 97.03476704769095, + "cv": 0.0011197471063834074 }, "p50": 1, - "p99": 2, + "p99": 1, "p999": 2 }, { "framework": "express", "reqSec": { - "median": 23950.4, - "min": 23902.4, - "max": 24011.2, - "stddev": 44.519758410046, - "cv": 0.0018585004345727763 + "median": 24325.1, + "min": 24281.46, + "max": 24406.55, + "stddev": 50.44878456414985, + "cv": 0.002073096921615235 }, "p50": 3, "p99": 5, @@ -231,11 +231,11 @@ { "framework": "green-tea", "reqSec": { - "median": 84896, - "min": 84243.2, - "max": 85267.2, - "stddev": 423.2825796347192, - "cv": 0.004991414284012342 + "median": 80078.55, + "min": 80026.19, + "max": 80375.28, + "stddev": 126.5427427235537, + "cv": 0.00157915416330658 }, "p50": 1, "p99": 2, @@ -244,24 +244,24 @@ { "framework": "nestjs-express", "reqSec": { - "median": 20824, - "min": 20804.8, - "max": 20878.41, - "stddev": 31.17605954717337, - "cv": 0.001496278247605678 + "median": 20872, + "min": 20800.73, + "max": 20940.37, + "stddev": 44.78034640330492, + "cv": 0.0021458031999967474 }, "p50": 4, "p99": 6, - "p999": 11 + "p999": 9 }, { "framework": "nestjs-fastify", "reqSec": { - "median": 87328, - "min": 86867.2, - "max": 87660.8, - "stddev": 325.38753646827104, - "cv": 0.0037278603866430907 + "median": 89527.28, + "min": 87572.37, + "max": 90027.64, + "stddev": 867.875358507201, + "cv": 0.009726340137622384 }, "p50": 1, "p99": 2, @@ -276,24 +276,24 @@ { "framework": "raw-http", "reqSec": { - "median": 100140.8, - "min": 99846.4, - "max": 100294.4, - "stddev": 185.88177843875883, - "cv": 0.0018570746103533369 + "median": 104288, + "min": 103776, + "max": 104916.37, + "stddev": 371.6125197245094, + "cv": 0.0035614220793380035 }, "p50": 0, "p99": 1, - "p999": 2 + "p999": 1 }, { "framework": "fastify", "reqSec": { - "median": 63721.6, - "min": 63574.4, - "max": 63760, - "stddev": 79.99288857281053, - "cv": 0.0012560645345785087 + "median": 65905.46, + "min": 65725.1, + "max": 66366.55, + "stddev": 217.1439762369652, + "cv": 0.0032914527300013986 }, "p50": 1, "p99": 2, @@ -302,53 +302,53 @@ { "framework": "express", "reqSec": { - "median": 20097.6, - "min": 20056, - "max": 20174.41, - "stddev": 49.04789518646266, - "cv": 0.0024390608203285337 + "median": 20297.46, + "min": 20157.82, + "max": 20413.82, + "stddev": 99.50819415505447, + "cv": 0.004902635960088364 }, "p50": 4, "p99": 6, - "p999": 12 + "p999": 10 }, { "framework": "green-tea", "reqSec": { - "median": 77177.61, - "min": 77126.4, - "max": 77254.4, - "stddev": 52.602458962379814, - "cv": 0.0006815013839797027 + "median": 70298.19, + "min": 68971.64, + "max": 70606.55, + "stddev": 704.8749988359651, + "cv": 0.01008804689681251 }, "p50": 1, "p99": 2, - "p999": 2 + "p999": 3 }, { "framework": "nestjs-express", "reqSec": { - "median": 18856, - "min": 18852.8, - "max": 19067.2, - "stddev": 100.32338821143516, - "cv": 0.005301010367660728 + "median": 18787.64, + "min": 18684.37, + "max": 18861.82, + "stddev": 57.13389375843402, + "cv": 0.0030419312672842124 }, "p50": 5, "p99": 7, - "p999": 30 + "p999": 10 }, { "framework": "nestjs-fastify", "reqSec": { - "median": 59145.6, - "min": 59004.8, - "max": 59376, - "stddev": 153.00625985741647, - "cv": 0.002585636725423652 + "median": 63317.82, + "min": 62453.82, + "max": 63746.91, + "stddev": 543.811870536126, + "cv": 0.00860786685722159 }, "p50": 1, - "p99": 3, + "p99": 2, "p999": 3 } ] @@ -358,27 +358,89 @@ { "path": "/steps/0", "steps": 0, - "reqSec": 92281.6 + "reqSec": 88107.64 }, { "path": "/steps/3", "steps": 3, - "reqSec": 81529.61 + "reqSec": 79950.55 }, { "path": "/steps/5", "steps": 5, - "reqSec": 71993.61 + "reqSec": 74126.55 } ], "secureCost": [ { "label": "security:false (parity)", - "reqSec": 98092.8 + "reqSec": 87473.46 }, { "label": "security:true (default)", - "reqSec": 92998.4 + "reqSec": 83773.1 + } + ], + "runtimes": [ + { + "runtime": "node", + "scenario": "JSON hello (overhead)", + "reqSec": 90976 + }, + { + "runtime": "node", + "scenario": "Route param", + "reqSec": 88904.73 + }, + { + "runtime": "node", + "scenario": "Pipeline (3 steps)", + "reqSec": 82045.1 + }, + { + "runtime": "node", + "scenario": "POST JSON + validation", + "reqSec": 72235.64 + }, + { + "runtime": "deno", + "scenario": "JSON hello (overhead)", + "reqSec": 153408 + }, + { + "runtime": "deno", + "scenario": "Route param", + "reqSec": 146368 + }, + { + "runtime": "deno", + "scenario": "Pipeline (3 steps)", + "reqSec": 136256 + }, + { + "runtime": "deno", + "scenario": "POST JSON + validation", + "reqSec": 106661.82 + }, + { + "runtime": "bun", + "scenario": "JSON hello (overhead)", + "reqSec": 131674.19 + }, + { + "runtime": "bun", + "scenario": "Route param", + "reqSec": 126909.1 + }, + { + "runtime": "bun", + "scenario": "Pipeline (3 steps)", + "reqSec": 117489.46 + }, + { + "runtime": "bun", + "scenario": "POST JSON + validation", + "reqSec": 95124.37 } ] } \ No newline at end of file