docs(bench): regenerate the cross-framework tables on a box that was not busy
Measured on an otherwise idle Ryzen 3700X over ssh, with the same Node, Deno and Bun versions the laptop runs, after two attempts here were thrown away. The absolute numbers drop to roughly a third — a 2019 desktop part against an M4 Max — and that is the trade: a slower box whose numbers mean something beats a faster one whose numbers track what else was on screen. The shape reproduced across both machines, which is the result worth having. green-tea is behind Fastify on hello, param and pipeline, ahead of it on validate, and ~2.8x ahead of Express, on the M4 and on the Ryzen alike. The size of the gap did not reproduce (2-8% there, 7-15% here), so the README now says the direction and points at the table for the number, rather than quoting a percentage that is really a fact about somebody's hardware. CV lands between 0.1% and 1.3% across every row, against 4-6% on the contended runs. Fixes a sentence added an hour ago claiming the ordering inside the fast group moves between runs by more than the gap between its members. It does not — it held on both boxes — and the claim happened to be the one that flattered us. Cross-framework tables and the runtime table are regenerated; the hand-written section below the marker, including the release gate, is untouched. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
3 files changed
+271
-263
No files matched your search
+56
-48
@@ -4,12 +4,12 @@
|
|||||||
|
|
||||||
## Environment
|
## Environment
|
||||||
|
|
||||||
- **Date**: 2026-09-02
|
- **Date**: 2026-09-23
|
||||||
- **Commit**: 8c5855c
|
- **Commit**: daf0fed
|
||||||
- **Node**: v22.22.2
|
- **Node**: v22.22.2
|
||||||
- **OS**: darwin
|
- **OS**: linux
|
||||||
- **CPU**: Apple M4 Max (16 cores)
|
- **CPU**: AMD Ryzen 7 3700X 8-Core Processor (16 cores)
|
||||||
- **RAM**: 69 GB
|
- **RAM**: 67 GB
|
||||||
- **Core-pinned**: no
|
- **Core-pinned**: no
|
||||||
- **autocannon config**: 100 connections, 10s duration, 5 runs (1 warmup discarded), pipelining 1
|
- **autocannon config**: 100 connections, 10s duration, 5 runs (1 warmup discarded), pipelining 1
|
||||||
|
|
||||||
@@ -29,74 +29,74 @@
|
|||||||
|
|
||||||
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
||||||
| --- | --- | --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- | --- | --- |
|
||||||
| raw-http | 119,357 | 0.00 | 1.00 | 1.00 | 0.4% | 118,560–120,067 |
|
| raw-http | 41,631 | 2.00 | 3.00 | 4.00 | 0.6% | 41,343–41,974 |
|
||||||
| nestjs-fastify | 98,039 | 0.00 | 1.00 | 2.00 | 1.2% | 96,073–99,680 |
|
| nestjs-fastify | 32,419 | 3.00 | 4.00 | 6.00 | 0.5% | 32,103–32,583 |
|
||||||
| fastify | 89,097 | 1.00 | 1.00 | 2.00 | 0.1% | 88,864–89,207 |
|
| fastify | 32,170 | 3.00 | 3.00 | 5.00 | 1.3% | 31,236–32,356 |
|
||||||
| green-tea | 87,473 | 1.00 | 2.00 | 2.00 | 0.3% | 86,903–87,607 |
|
| green-tea | 29,777 | 3.00 | 6.00 | 7.00 | 0.4% | 29,557–29,873 |
|
||||||
| express | 24,677 | 3.00 | 5.00 | 8.00 | 0.2% | 24,647–24,769 |
|
| express | 10,546 | 8.00 | 13.00 | 18.00 | 0.4% | 10,480–10,625 |
|
||||||
| nestjs-express | 21,879 | 4.00 | 6.00 | 9.00 | 0.2% | 21,845–21,953 |
|
| nestjs-express | 9,680 | 9.00 | 15.00 | 21.00 | 0.6% | 9,567–9,739 |
|
||||||
|
|
||||||
### Route param
|
### Route param
|
||||||
|
|
||||||
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
||||||
| --- | --- | --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- | --- | --- |
|
||||||
| raw-http | 120,905 | 0.00 | 1.00 | 1.00 | 0.5% | 119,927–121,713 |
|
| raw-http | 41,756 | 2.00 | 3.00 | 4.00 | 1.1% | 40,953–42,017 |
|
||||||
| nestjs-fastify | 91,849 | 1.00 | 1.00 | 2.00 | 0.3% | 91,825–92,599 |
|
| fastify | 31,708 | 3.00 | 4.00 | 5.00 | 0.5% | 31,359–31,847 |
|
||||||
| fastify | 88,317 | 1.00 | 1.00 | 2.00 | 0.2% | 87,997–88,439 |
|
| nestjs-fastify | 29,880 | 3.00 | 4.00 | 6.00 | 0.3% | 29,745–29,961 |
|
||||||
| green-tea | 86,595 | 1.00 | 2.00 | 2.00 | 0.2% | 86,368–86,880 |
|
| green-tea | 28,706 | 3.00 | 6.00 | 7.00 | 0.6% | 28,562–29,051 |
|
||||||
| express | 24,200 | 3.00 | 5.00 | 8.00 | 0.2% | 24,158–24,260 |
|
| express | 10,376 | 9.00 | 12.00 | 17.00 | 0.4% | 10,364–10,453 |
|
||||||
| nestjs-express | 21,182 | 4.00 | 6.00 | 9.00 | 0.7% | 21,150–21,518 |
|
| nestjs-express | 9,257 | 10.00 | 15.00 | 21.00 | 0.2% | 9,244–9,285 |
|
||||||
|
|
||||||
### Pipeline (3 steps) (approximation)
|
### Pipeline (3 steps) (approximation)
|
||||||
|
|
||||||
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
||||||
| --- | --- | --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- | --- | --- |
|
||||||
| raw-http | 118,996 | 0.00 | 1.00 | 1.00 | 0.3% | 118,583–119,584 |
|
| raw-http | 39,897 | 2.00 | 3.00 | 5.00 | 0.6% | 39,847–40,441 |
|
||||||
| nestjs-fastify | 89,527 | 1.00 | 2.00 | 2.00 | 1.0% | 87,572–90,028 |
|
| fastify | 31,436 | 3.00 | 4.00 | 6.00 | 0.6% | 31,079–31,563 |
|
||||||
| fastify | 86,671 | 1.00 | 1.00 | 2.00 | 0.1% | 86,490–86,793 |
|
| nestjs-fastify | 29,403 | 3.00 | 4.00 | 6.00 | 0.6% | 29,151–29,689 |
|
||||||
| green-tea | 80,079 | 1.00 | 2.00 | 2.00 | 0.2% | 80,026–80,375 |
|
| green-tea | 26,839 | 3.00 | 6.00 | 8.00 | 0.1% | 26,783–26,872 |
|
||||||
| express | 24,325 | 3.00 | 5.00 | 8.00 | 0.2% | 24,281–24,407 |
|
| express | 10,365 | 9.00 | 12.00 | 18.00 | 1.3% | 10,171–10,542 |
|
||||||
| nestjs-express | 20,872 | 4.00 | 6.00 | 9.00 | 0.2% | 20,801–20,940 |
|
| nestjs-express | 9,256 | 10.00 | 15.00 | 22.00 | 0.5% | 9,187–9,302 |
|
||||||
|
|
||||||
### POST JSON + validation
|
### POST JSON + validation
|
||||||
|
|
||||||
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
| Framework | req/s (median) | p50 (ms) | p99 (ms) | p999 (ms) | CV | min–max req/s |
|
||||||
| --- | --- | --- | --- | --- | --- | --- |
|
| --- | --- | --- | --- | --- | --- | --- |
|
||||||
| raw-http | 104,288 | 0.00 | 1.00 | 1.00 | 0.4% | 103,776–104,916 |
|
| raw-http | 31,783 | 3.00 | 5.00 | 6.00 | 0.4% | 31,517–31,825 |
|
||||||
| green-tea | 70,298 | 1.00 | 2.00 | 3.00 | 1.0% | 68,972–70,607 |
|
| green-tea | 22,005 | 4.00 | 7.00 | 9.00 | 0.7% | 21,736–22,187 |
|
||||||
| fastify | 65,905 | 1.00 | 2.00 | 3.00 | 0.3% | 65,725–66,367 |
|
| fastify | 20,430 | 4.00 | 8.00 | 9.00 | 0.4% | 20,398–20,601 |
|
||||||
| nestjs-fastify | 63,318 | 1.00 | 2.00 | 3.00 | 0.9% | 62,454–63,747 |
|
| nestjs-fastify | 18,597 | 4.00 | 8.00 | 11.00 | 0.2% | 18,540–18,658 |
|
||||||
| express | 20,297 | 4.00 | 6.00 | 10.00 | 0.5% | 20,158–20,414 |
|
| express | 8,440 | 11.00 | 16.00 | 24.00 | 0.3% | 8,408–8,492 |
|
||||||
| nestjs-express | 18,788 | 5.00 | 7.00 | 10.00 | 0.3% | 18,684–18,862 |
|
| nestjs-express | 7,666 | 12.00 | 18.00 | 26.00 | 0.3% | 7,645–7,703 |
|
||||||
|
|
||||||
## Step-scaling (green-tea)
|
## Step-scaling (green-tea)
|
||||||
|
|
||||||
| Path | Steps | req/s |
|
| Path | Steps | req/s |
|
||||||
| --- | --- | --- |
|
| --- | --- | --- |
|
||||||
| /steps/0 | 0 | 88,108 |
|
| /steps/0 | 0 | 29,196 |
|
||||||
| /steps/3 | 3 | 79,951 |
|
| /steps/3 | 3 | 26,564 |
|
||||||
| /steps/5 | 5 | 74,127 |
|
| /steps/5 | 5 | 25,314 |
|
||||||
|
|
||||||
Each additional pipeline step costs roughly 2,796 req/s (-15.9% over 5 steps), on this box.
|
Each additional pipeline step costs roughly 776 req/s (-13.3% over 5 steps), on this box.
|
||||||
|
|
||||||
## green-tea across runtimes
|
## green-tea across runtimes
|
||||||
|
|
||||||
| Scenario | node | deno | bun |
|
| Scenario | node | deno | bun |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| JSON hello (overhead) | 90,976 | 153,408 | 131,674 |
|
| JSON hello (overhead) | 30,379 | 51,888 | 46,300 |
|
||||||
| Route param | 88,905 | 146,368 | 126,909 |
|
| Route param | 29,204 | 51,786 | 42,788 |
|
||||||
| Pipeline (3 steps) | 82,045 | 136,256 | 117,489 |
|
| Pipeline (3 steps) | 27,208 | 50,692 | 39,644 |
|
||||||
| POST JSON + validation | 72,236 | 106,662 | 95,124 |
|
| POST JSON + validation | 22,609 | 35,743 | 31,960 |
|
||||||
|
|
||||||
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.
|
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)
|
## Cost of secure-by-default (green-tea)
|
||||||
|
|
||||||
| Label | req/s |
|
| Label | req/s |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| security:false (parity) | 87,473 |
|
| security:false (parity) | 29,777 |
|
||||||
| security:true (default) | 83,773 |
|
| security:true (default) | 28,919 |
|
||||||
|
|
||||||
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.
|
The real cost of running secure-by-default (rather than the parity-mode `security:false` used above) is ~2.9% req/s on this box.
|
||||||
|
|
||||||
> Scope: this micro-bench currently measures the security-**headers** cost only (`security:false` vs
|
> 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
|
> `security:true` on `/hello`). The incremental cost of `@body` validation and CORS is not separately
|
||||||
@@ -169,14 +169,22 @@ work that could produce it would have to show at 200 routes too, and that row ha
|
|||||||
+0.1%. Treat a flagged row as an instruction to measure again, whichever direction it points; a win
|
+0.1%. Treat a flagged row as an instruction to measure again, whichever direction it points; a win
|
||||||
nobody can explain is a measurement problem more often than it is a win.
|
nobody can explain is a measurement problem more often than it is a win.
|
||||||
|
|
||||||
The cross-framework tables above were **not** regenerated for this release, and their date says so.
|
The cross-framework tables above moved to a quiet box for this release, which is why their absolute
|
||||||
Two attempts produced numbers this box cannot stand behind: each framework's delta against the
|
numbers are roughly a third of the previous run's: an idle 2019 desktop Ryzen against a laptop M4
|
||||||
previous run tracked its position in the run order rather than anything in its code — the framework
|
Max. Two attempts on that laptop were discarded first, and the reason is worth recording. Each
|
||||||
measured second lost 7%, the ones measured last gained — and a browser and the window server were
|
framework's delta against its own previous number tracked its position in the run order rather than
|
||||||
taking around 60% of the machine throughout. Reporting that as "green-tea overtook Fastify" would
|
anything in its code — the one measured second lost 7%, the ones measured last gained — while a
|
||||||
have been the most flattering available reading of a broken measurement, which is exactly the kind
|
browser and the window server held around 60% of the machine throughout. That run would have read
|
||||||
this file exists to refuse. The gate table above survives the same contention, because both sides
|
as green-tea overtaking Fastify, which is the most flattering available reading of a broken
|
||||||
pay it and the order alternates; an absolute cross-framework number does not, and needs a quiet box.
|
measurement and exactly the kind this file exists to refuse. The gate table above survives the same
|
||||||
|
contention, because both sides pay it and the order alternates; an absolute cross-framework number
|
||||||
|
does not.
|
||||||
|
|
||||||
|
What survived the move is the shape, and that is the part worth trusting. On both machines green-tea
|
||||||
|
is behind Fastify on `hello`, `param` and `pipeline` and ahead of it on `validate`, and roughly
|
||||||
|
2.8× ahead of Express throughout. The *size* of the gap did not survive: against Fastify it is
|
||||||
|
2-8% on the M4 and 7-15% here. A percentage quoted without the hardware it was measured on is not a
|
||||||
|
fact about the framework.
|
||||||
|
|
||||||
### The release gate: `26.8.0-beta.1` → `26.9.0-beta.1`
|
### The release gate: `26.8.0-beta.1` → `26.9.0-beta.1`
|
||||||
|
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ without growing the runtime dependency tree past `reflect-metadata`:
|
|||||||
|
|
||||||
We built a reproducible [autocannon harness](./BENCHMARKS.md) comparing green-tea to Express 5, Fastify 5, NestJS (on both Express and Fastify), and raw Node `http` — and we wrote it to be **hard on ourselves**, not flattering.
|
We built a reproducible [autocannon harness](./BENCHMARKS.md) comparing green-tea to Express 5, Fastify 5, NestJS (on both Express and Fastify), and raw Node `http` — and we wrote it to be **hard on ourselves**, not flattering.
|
||||||
|
|
||||||
On that harness green-tea lands in the fast group on Node — with Fastify and NestJS-on-Fastify, and behind raw `http` with no framework at all — and Express and NestJS-on-Express are roughly 3× back. Which member of that fast group tops a given scenario moves between runs by more than the gap between them, so the table below is the answer and a sentence here is not — a ranking written into a README once is a claim that stops being re-measured, and ends up contradicting the file it links to.
|
On that harness green-tea is in the same class as Fastify and NestJS-on-Fastify, roughly 2.8× ahead of Express, and behind raw `http` with no framework at all. Within that class the shape reproduces on two very different machines: green-tea is **behind** Fastify on the JSON, routing and pipeline scenarios, and **ahead** of it on POST-plus-validation. How far behind is a property of the box rather than a constant — 2-8% on a laptop M4 Max, 7-15% on an idle desktop Ryzen — which is why the table carries its hardware and its date, and why a percentage quoted without them says little. Read [BENCHMARKS.md](./BENCHMARKS.md) rather than a sentence here: a ranking written into prose once is a claim nobody re-measures.
|
||||||
|
|
||||||
The question a release actually has to pass is the other one — *did the last N commits cost anything* — and comparing today's numbers against a table generated weeks ago answers it with two machines in a mood rather than two versions. `npm run bench:compare` runs both trees on one box in one sitting, alternating sides; `26.9.0-beta.1 → 26.9.0-beta.2` came out flat on every case.
|
The question a release actually has to pass is the other one — *did the last N commits cost anything* — and comparing today's numbers against a table generated weeks ago answers it with two machines in a mood rather than two versions. `npm run bench:compare` runs both trees on one box in one sitting, alternating sides; `26.9.0-beta.1 → 26.9.0-beta.2` came out flat on every case.
|
||||||
|
|
||||||
|
|||||||
+214
-214
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"env": {
|
"env": {
|
||||||
"date": "2026-09-02",
|
"date": "2026-09-23",
|
||||||
"commit": "8c5855c",
|
"commit": "daf0fed",
|
||||||
"node": "v22.22.2",
|
"node": "v22.22.2",
|
||||||
"os": "darwin",
|
"os": "linux",
|
||||||
"cpu": "Apple M4 Max (16 cores)",
|
"cpu": "AMD Ryzen 7 3700X 8-Core Processor (16 cores)",
|
||||||
"ram": "69 GB",
|
"ram": "67 GB",
|
||||||
"pinned": false
|
"pinned": false
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
@@ -23,80 +23,80 @@
|
|||||||
{
|
{
|
||||||
"framework": "raw-http",
|
"framework": "raw-http",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 119357.1,
|
"median": 41630.55,
|
||||||
"min": 118560,
|
"min": 41342.55,
|
||||||
"max": 120066.91,
|
"max": 41973.82,
|
||||||
"stddev": 484.9030139151553,
|
"stddev": 232.79156158245826,
|
||||||
"cv": 0.0040636145553490976
|
"cv": 0.0055977118567263305
|
||||||
},
|
},
|
||||||
"p50": 0,
|
"p50": 2,
|
||||||
"p99": 1,
|
"p99": 3,
|
||||||
"p999": 1
|
"p999": 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "fastify",
|
"framework": "fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 89096.73,
|
"median": 32170.19,
|
||||||
"min": 88864,
|
"min": 31235.64,
|
||||||
"max": 89207.28,
|
"max": 32355.64,
|
||||||
"stddev": 111.97759400880093,
|
"stddev": 403.36620390905324,
|
||||||
"cv": 0.001257219726589825
|
"cv": 0.012593571579786219
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 1,
|
"p99": 3,
|
||||||
"p999": 2
|
"p999": 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "express",
|
"framework": "express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 24677.1,
|
"median": 10545.82,
|
||||||
"min": 24646.55,
|
"min": 10480.37,
|
||||||
"max": 24768.73,
|
"max": 10625.1,
|
||||||
"stddev": 43.02015834466458,
|
"stddev": 47.02831087759791,
|
||||||
"cv": 0.0017417832565876405
|
"cv": 0.004456044641032285
|
||||||
},
|
},
|
||||||
"p50": 3,
|
"p50": 8,
|
||||||
"p99": 5,
|
"p99": 13,
|
||||||
"p999": 8
|
"p999": 18
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "green-tea",
|
"framework": "green-tea",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 87473.46,
|
"median": 29776.73,
|
||||||
"min": 86903.28,
|
"min": 29557.1,
|
||||||
"max": 87607.28,
|
"max": 29872.73,
|
||||||
"stddev": 280.84365746087286,
|
"stddev": 120.92248317000461,
|
||||||
"cv": 0.0032155347907296527
|
"cv": 0.004066812850878315
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 2,
|
"p99": 6,
|
||||||
"p999": 2
|
"p999": 7
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-express",
|
"framework": "nestjs-express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 21878.55,
|
"median": 9679.64,
|
||||||
"min": 21845.1,
|
"min": 9566.91,
|
||||||
"max": 21952.73,
|
"max": 9738.55,
|
||||||
"stddev": 41.00873789816055,
|
"stddev": 58.2951632985104,
|
||||||
"cv": 0.0018731606009975037
|
"cv": 0.006025529205104781
|
||||||
},
|
},
|
||||||
"p50": 4,
|
"p50": 9,
|
||||||
"p99": 6,
|
"p99": 15,
|
||||||
"p999": 9
|
"p999": 21
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-fastify",
|
"framework": "nestjs-fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 98039.28,
|
"median": 32418.91,
|
||||||
"min": 96072.73,
|
"min": 32103.28,
|
||||||
"max": 99680,
|
"max": 32582.55,
|
||||||
"stddev": 1215.4038343760499,
|
"stddev": 159.574135748874,
|
||||||
"cv": 0.012396669934655963
|
"cv": 0.004929287112917938
|
||||||
},
|
},
|
||||||
"p50": 0,
|
"p50": 3,
|
||||||
"p99": 1,
|
"p99": 4,
|
||||||
"p999": 2
|
"p999": 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -107,80 +107,80 @@
|
|||||||
{
|
{
|
||||||
"framework": "raw-http",
|
"framework": "raw-http",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 120904.73,
|
"median": 41755.64,
|
||||||
"min": 119927.28,
|
"min": 40952.73,
|
||||||
"max": 121713.46,
|
"max": 42017.46,
|
||||||
"stddev": 658.0250991747977,
|
"stddev": 439.72294183496837,
|
||||||
"cv": 0.005441723483024015
|
"cv": 0.010587809774433589
|
||||||
},
|
},
|
||||||
"p50": 0,
|
"p50": 2,
|
||||||
"p99": 1,
|
"p99": 3,
|
||||||
"p999": 1
|
"p999": 4
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "fastify",
|
"framework": "fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 88317.1,
|
"median": 31708.37,
|
||||||
"min": 87997.1,
|
"min": 31359.28,
|
||||||
"max": 88439.28,
|
"max": 31846.55,
|
||||||
"stddev": 182.99174422907566,
|
"stddev": 168.73300179869975,
|
||||||
"cv": 0.00207430857941761
|
"cv": 0.005328784944282288
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 1,
|
"p99": 4,
|
||||||
"p999": 2
|
"p999": 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "express",
|
"framework": "express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 24200,
|
"median": 10375.64,
|
||||||
"min": 24157.82,
|
"min": 10364,
|
||||||
"max": 24259.64,
|
"max": 10452.73,
|
||||||
"stddev": 39.43298619176589,
|
"stddev": 37.668132419858544,
|
||||||
"cv": 0.0016290899720752198
|
"cv": 0.003621859193349617
|
||||||
},
|
},
|
||||||
"p50": 3,
|
"p50": 9,
|
||||||
"p99": 5,
|
"p99": 12,
|
||||||
"p999": 8
|
"p999": 17
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "green-tea",
|
"framework": "green-tea",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 86594.91,
|
"median": 28706.19,
|
||||||
"min": 86368,
|
"min": 28562.19,
|
||||||
"max": 86880,
|
"max": 29050.91,
|
||||||
"stddev": 179.11650003279965,
|
"stddev": 166.92265315408858,
|
||||||
"cv": 0.002068552609808656
|
"cv": 0.005803163694455583
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 2,
|
"p99": 6,
|
||||||
"p999": 2
|
"p999": 7
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-express",
|
"framework": "nestjs-express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 21181.82,
|
"median": 9257.1,
|
||||||
"min": 21149.82,
|
"min": 9244,
|
||||||
"max": 21517.82,
|
"max": 9285.46,
|
||||||
"stddev": 139.0670808494951,
|
"stddev": 16.97885461390117,
|
||||||
"cv": 0.006540068168697097
|
"cv": 0.0018327336012062287
|
||||||
},
|
},
|
||||||
"p50": 4,
|
"p50": 10,
|
||||||
"p99": 6,
|
"p99": 15,
|
||||||
"p999": 9
|
"p999": 21
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-fastify",
|
"framework": "nestjs-fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 91848.73,
|
"median": 29880,
|
||||||
"min": 91825.46,
|
"min": 29744.73,
|
||||||
"max": 92599.28,
|
"max": 29961.46,
|
||||||
"stddev": 296.55679952413783,
|
"stddev": 90.38256681462417,
|
||||||
"cv": 0.00322222064035544
|
"cv": 0.003027383166346
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 1,
|
"p99": 4,
|
||||||
"p999": 2
|
"p999": 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -192,80 +192,80 @@
|
|||||||
{
|
{
|
||||||
"framework": "raw-http",
|
"framework": "raw-http",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 118996.37,
|
"median": 39896.73,
|
||||||
"min": 118583.28,
|
"min": 39847.28,
|
||||||
"max": 119584,
|
"max": 40440.73,
|
||||||
"stddev": 341.82644850274596,
|
"stddev": 235.6558649726337,
|
||||||
"cv": 0.002872466494470492
|
"cv": 0.0058846766178520865
|
||||||
},
|
},
|
||||||
"p50": 0,
|
"p50": 2,
|
||||||
"p99": 1,
|
"p99": 3,
|
||||||
"p999": 1
|
"p999": 5
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "fastify",
|
"framework": "fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 86670.55,
|
"median": 31436.37,
|
||||||
"min": 86490.19,
|
"min": 31078.55,
|
||||||
"max": 86792.73,
|
"max": 31562.91,
|
||||||
"stddev": 97.03476704769095,
|
"stddev": 185.21052212010017,
|
||||||
"cv": 0.0011197471063834074
|
"cv": 0.005909263441314207
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 1,
|
"p99": 4,
|
||||||
"p999": 2
|
"p999": 6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "express",
|
"framework": "express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 24325.1,
|
"median": 10365.46,
|
||||||
"min": 24281.46,
|
"min": 10170.55,
|
||||||
"max": 24406.55,
|
"max": 10542.19,
|
||||||
"stddev": 50.44878456414985,
|
"stddev": 129.83340146510884,
|
||||||
"cv": 0.002073096921615235
|
"cv": 0.01252603707960138
|
||||||
},
|
},
|
||||||
"p50": 3,
|
"p50": 9,
|
||||||
"p99": 5,
|
"p99": 12,
|
||||||
"p999": 8
|
"p999": 18
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "green-tea",
|
"framework": "green-tea",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 80078.55,
|
"median": 26838.55,
|
||||||
"min": 80026.19,
|
"min": 26783.28,
|
||||||
"max": 80375.28,
|
"max": 26872,
|
||||||
"stddev": 126.5427427235537,
|
"stddev": 35.930271582608675,
|
||||||
"cv": 0.00157915416330658
|
"cv": 0.0013390899572667937
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 2,
|
"p99": 6,
|
||||||
"p999": 2
|
"p999": 8
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-express",
|
"framework": "nestjs-express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 20872,
|
"median": 9256.37,
|
||||||
"min": 20800.73,
|
"min": 9187.28,
|
||||||
"max": 20940.37,
|
"max": 9302.19,
|
||||||
"stddev": 44.78034640330492,
|
"stddev": 42.180541200890175,
|
||||||
"cv": 0.0021458031999967474
|
"cv": 0.0045584972844857205
|
||||||
},
|
},
|
||||||
"p50": 4,
|
"p50": 10,
|
||||||
"p99": 6,
|
"p99": 15,
|
||||||
"p999": 9
|
"p999": 22
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-fastify",
|
"framework": "nestjs-fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 89527.28,
|
"median": 29402.91,
|
||||||
"min": 87572.37,
|
"min": 29151.28,
|
||||||
"max": 90027.64,
|
"max": 29689.46,
|
||||||
"stddev": 867.875358507201,
|
"stddev": 189.99449229911926,
|
||||||
"cv": 0.009726340137622384
|
"cv": 0.006460862473261261
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 3,
|
||||||
"p99": 2,
|
"p99": 4,
|
||||||
"p999": 2
|
"p999": 6
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -276,80 +276,80 @@
|
|||||||
{
|
{
|
||||||
"framework": "raw-http",
|
"framework": "raw-http",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 104288,
|
"median": 31783.28,
|
||||||
"min": 103776,
|
"min": 31517.1,
|
||||||
"max": 104916.37,
|
"max": 31824.73,
|
||||||
"stddev": 371.6125197245094,
|
"stddev": 111.5598838292694,
|
||||||
"cv": 0.0035614220793380035
|
"cv": 0.003516116881358333
|
||||||
},
|
},
|
||||||
"p50": 0,
|
"p50": 3,
|
||||||
"p99": 1,
|
"p99": 5,
|
||||||
"p999": 1
|
"p999": 6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "fastify",
|
"framework": "fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 65905.46,
|
"median": 20429.82,
|
||||||
"min": 65725.1,
|
"min": 20397.82,
|
||||||
"max": 66366.55,
|
"max": 20601.46,
|
||||||
"stddev": 217.1439762369652,
|
"stddev": 73.12471046096515,
|
||||||
"cv": 0.0032914527300013986
|
"cv": 0.0035727493036941836
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 4,
|
||||||
"p99": 2,
|
"p99": 8,
|
||||||
"p999": 3
|
"p999": 9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "express",
|
"framework": "express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 20297.46,
|
"median": 8440.37,
|
||||||
"min": 20157.82,
|
"min": 8407.64,
|
||||||
"max": 20413.82,
|
"max": 8492,
|
||||||
"stddev": 99.50819415505447,
|
"stddev": 29.52737333390846,
|
||||||
"cv": 0.004902635960088364
|
"cv": 0.003496408589959768
|
||||||
},
|
},
|
||||||
"p50": 4,
|
"p50": 11,
|
||||||
"p99": 6,
|
"p99": 16,
|
||||||
"p999": 10
|
"p999": 24
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "green-tea",
|
"framework": "green-tea",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 70298.19,
|
"median": 22005.1,
|
||||||
"min": 68971.64,
|
"min": 21736,
|
||||||
"max": 70606.55,
|
"max": 22186.91,
|
||||||
"stddev": 704.8749988359651,
|
"stddev": 149.1731413626461,
|
||||||
"cv": 0.01008804689681251
|
"cv": 0.006790967759795645
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 4,
|
||||||
"p99": 2,
|
"p99": 7,
|
||||||
"p999": 3
|
"p999": 9
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-express",
|
"framework": "nestjs-express",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 18787.64,
|
"median": 7666.37,
|
||||||
"min": 18684.37,
|
"min": 7645.28,
|
||||||
"max": 18861.82,
|
"max": 7703.46,
|
||||||
"stddev": 57.13389375843402,
|
"stddev": 20.418688106732038,
|
||||||
"cv": 0.0030419312672842124
|
"cv": 0.002662071942974812
|
||||||
},
|
},
|
||||||
"p50": 5,
|
"p50": 12,
|
||||||
"p99": 7,
|
"p99": 18,
|
||||||
"p999": 10
|
"p999": 26
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"framework": "nestjs-fastify",
|
"framework": "nestjs-fastify",
|
||||||
"reqSec": {
|
"reqSec": {
|
||||||
"median": 63317.82,
|
"median": 18596.8,
|
||||||
"min": 62453.82,
|
"min": 18540.37,
|
||||||
"max": 63746.91,
|
"max": 18658.19,
|
||||||
"stddev": 543.811870536126,
|
"stddev": 37.943211988443956,
|
||||||
"cv": 0.00860786685722159
|
"cv": 0.0020404741150848267
|
||||||
},
|
},
|
||||||
"p50": 1,
|
"p50": 4,
|
||||||
"p99": 2,
|
"p99": 8,
|
||||||
"p999": 3
|
"p999": 11
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@@ -358,89 +358,89 @@
|
|||||||
{
|
{
|
||||||
"path": "/steps/0",
|
"path": "/steps/0",
|
||||||
"steps": 0,
|
"steps": 0,
|
||||||
"reqSec": 88107.64
|
"reqSec": 29196.37
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/steps/3",
|
"path": "/steps/3",
|
||||||
"steps": 3,
|
"steps": 3,
|
||||||
"reqSec": 79950.55
|
"reqSec": 26563.64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path": "/steps/5",
|
"path": "/steps/5",
|
||||||
"steps": 5,
|
"steps": 5,
|
||||||
"reqSec": 74126.55
|
"reqSec": 25314.19
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"secureCost": [
|
"secureCost": [
|
||||||
{
|
{
|
||||||
"label": "security:false (parity)",
|
"label": "security:false (parity)",
|
||||||
"reqSec": 87473.46
|
"reqSec": 29776.73
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "security:true (default)",
|
"label": "security:true (default)",
|
||||||
"reqSec": 83773.1
|
"reqSec": 28918.55
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"runtimes": [
|
"runtimes": [
|
||||||
{
|
{
|
||||||
"runtime": "node",
|
"runtime": "node",
|
||||||
"scenario": "JSON hello (overhead)",
|
"scenario": "JSON hello (overhead)",
|
||||||
"reqSec": 90976
|
"reqSec": 30378.91
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "node",
|
"runtime": "node",
|
||||||
"scenario": "Route param",
|
"scenario": "Route param",
|
||||||
"reqSec": 88904.73
|
"reqSec": 29203.64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "node",
|
"runtime": "node",
|
||||||
"scenario": "Pipeline (3 steps)",
|
"scenario": "Pipeline (3 steps)",
|
||||||
"reqSec": 82045.1
|
"reqSec": 27208
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "node",
|
"runtime": "node",
|
||||||
"scenario": "POST JSON + validation",
|
"scenario": "POST JSON + validation",
|
||||||
"reqSec": 72235.64
|
"reqSec": 22608.73
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "deno",
|
"runtime": "deno",
|
||||||
"scenario": "JSON hello (overhead)",
|
"scenario": "JSON hello (overhead)",
|
||||||
"reqSec": 153408
|
"reqSec": 51888
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "deno",
|
"runtime": "deno",
|
||||||
"scenario": "Route param",
|
"scenario": "Route param",
|
||||||
"reqSec": 146368
|
"reqSec": 51785.6
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "deno",
|
"runtime": "deno",
|
||||||
"scenario": "Pipeline (3 steps)",
|
"scenario": "Pipeline (3 steps)",
|
||||||
"reqSec": 136256
|
"reqSec": 50692.37
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "deno",
|
"runtime": "deno",
|
||||||
"scenario": "POST JSON + validation",
|
"scenario": "POST JSON + validation",
|
||||||
"reqSec": 106661.82
|
"reqSec": 35742.55
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "bun",
|
"runtime": "bun",
|
||||||
"scenario": "JSON hello (overhead)",
|
"scenario": "JSON hello (overhead)",
|
||||||
"reqSec": 131674.19
|
"reqSec": 46299.64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "bun",
|
"runtime": "bun",
|
||||||
"scenario": "Route param",
|
"scenario": "Route param",
|
||||||
"reqSec": 126909.1
|
"reqSec": 42788.37
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "bun",
|
"runtime": "bun",
|
||||||
"scenario": "Pipeline (3 steps)",
|
"scenario": "Pipeline (3 steps)",
|
||||||
"reqSec": 117489.46
|
"reqSec": 39643.64
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"runtime": "bun",
|
"runtime": "bun",
|
||||||
"scenario": "POST JSON + validation",
|
"scenario": "POST JSON + validation",
|
||||||
"reqSec": 95124.37
|
"reqSec": 31960
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user