From eea782529d7ac5ac75fecde7f121fd18ab71c1b5 Mon Sep 17 00:00:00 2001 From: Github Actions <> Date: Mon, 4 Nov 2024 01:29:21 +0000 Subject: [PATCH] chore: update benchmark results --- README.md | 50 +++++++++++++++++++++--------------------- benchmark-results.json | 2 +- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index d7cedc70..6c082b0b 100644 --- a/README.md +++ b/README.md @@ -46,35 +46,35 @@ node ./benchmark [arguments (optional)] * __Machine:__ linux x64 | 4 vCPUs | 15.6GB Mem * __Node:__ `v20.18.0` -* __Run:__ Mon Oct 28 2024 01:29:51 GMT+0000 (Coordinated Universal Time) +* __Run:__ Mon Nov 04 2024 01:29:21 GMT+0000 (Coordinated Universal Time) * __Method:__ `autocannon -c 100 -d 40 -p 10 localhost:3000` (two rounds; one to warm-up, one to measure) | | Version | Router | Requests/s | Latency (ms) | Throughput/Mb | | :-- | --: | --: | :-: | --: | --: | -| bare | v20.18.0 | ✗ | 47136.0 | 20.70 | 8.41 | -| kita | 1.1.36 | ✓ | 46696.8 | 20.92 | 8.37 | -| connect | 3.7.0 | ✗ | 46184.0 | 21.15 | 8.24 | -| rayo | 1.4.6 | ✓ | 46174.4 | 21.15 | 8.23 | -| fastify | 4.28.1 | ✓ | 46019.2 | 21.22 | 8.25 | -| polka | 0.5.2 | ✓ | 45936.0 | 21.27 | 8.19 | -| server-base-router | 7.1.32 | ✓ | 44892.0 | 21.78 | 8.01 | -| polkadot | 1.0.0 | ✗ | 44794.4 | 21.82 | 7.99 | -| server-base | 7.1.32 | ✗ | 44270.4 | 22.09 | 7.90 | -| 0http | 3.5.3 | ✓ | 43028.0 | 22.74 | 7.67 | -| connect-router | 1.3.8 | ✓ | 42755.2 | 22.89 | 7.62 | -| h3 | 1.13.0 | ✗ | 41536.8 | 23.59 | 7.41 | -| hono | 4.6.7 | ✓ | 40050.4 | 24.47 | 7.14 | -| h3-router | 1.13.0 | ✓ | 39867.2 | 24.59 | 7.11 | -| restana | 4.9.9 | ✓ | 37510.6 | 26.15 | 6.69 | -| koa | 2.15.3 | ✗ | 36303.8 | 27.04 | 6.47 | -| take-five | 2.0.0 | ✓ | 36197.0 | 27.11 | 13.01 | -| restify | 11.1.0 | ✓ | 34784.4 | 28.25 | 6.27 | -| koa-isomorphic-router | 1.0.1 | ✓ | 33979.6 | 28.92 | 6.06 | -| koa-router | 12.0.1 | ✓ | 33530.4 | 29.32 | 5.98 | -| hapi | 21.3.12 | ✓ | 31444.0 | 31.30 | 5.61 | -| fastify-big-json | 4.28.1 | ✓ | 11889.0 | 83.53 | 136.79 | -| express | 4.21.1 | ✓ | 10881.2 | 91.32 | 1.94 | -| express-with-middlewares | 4.21.1 | ✓ | 9986.8 | 99.52 | 3.71 | +| fastify | 4.28.1 | ✓ | 47848.0 | 20.41 | 8.58 | +| bare | v20.18.0 | ✗ | 47789.6 | 20.43 | 8.52 | +| kita | 1.1.36 | ✓ | 47612.8 | 20.52 | 8.54 | +| rayo | 1.4.6 | ✓ | 47496.0 | 20.54 | 8.47 | +| connect | 3.7.0 | ✗ | 47196.8 | 20.69 | 8.42 | +| polka | 0.5.2 | ✓ | 46856.8 | 20.84 | 8.36 | +| server-base | 7.1.32 | ✗ | 46410.4 | 21.03 | 8.28 | +| polkadot | 1.0.0 | ✗ | 46170.4 | 21.17 | 8.23 | +| server-base-router | 7.1.32 | ✓ | 46011.2 | 21.21 | 8.21 | +| 0http | 3.5.3 | ✓ | 45170.4 | 21.64 | 8.06 | +| connect-router | 1.3.8 | ✓ | 43708.0 | 22.37 | 7.79 | +| h3 | 1.13.0 | ✗ | 43062.4 | 22.72 | 7.68 | +| h3-router | 1.13.0 | ✓ | 40796.0 | 24.01 | 7.28 | +| hono | 4.6.8 | ✓ | 39916.8 | 24.54 | 7.12 | +| restana | 4.9.9 | ✓ | 39320.8 | 24.93 | 7.01 | +| koa | 2.15.3 | ✗ | 37432.2 | 26.23 | 6.68 | +| take-five | 2.0.0 | ✓ | 35227.0 | 27.87 | 12.67 | +| koa-isomorphic-router | 1.0.1 | ✓ | 35183.0 | 27.92 | 6.27 | +| restify | 11.1.0 | ✓ | 34290.2 | 28.65 | 6.18 | +| koa-router | 12.0.1 | ✓ | 33837.4 | 29.04 | 6.03 | +| hapi | 21.3.12 | ✓ | 32055.6 | 30.69 | 5.72 | +| fastify-big-json | 4.28.1 | ✓ | 11993.2 | 82.80 | 137.99 | +| express | 4.21.1 | ✓ | 10894.0 | 91.22 | 1.94 | +| express-with-middlewares | 4.21.1 | ✓ | 10054.1 | 98.83 | 3.74 | | micro-route | 2.5.0 | ✓ | N/A | N/A | N/A | | micro | 10.0.1 | ✗ | N/A | N/A | N/A | | microrouter | 3.1.3 | ✓ | N/A | N/A | N/A | diff --git a/benchmark-results.json b/benchmark-results.json index de5aa8a2..cc8f2f86 100644 --- a/benchmark-results.json +++ b/benchmark-results.json @@ -1 +1 @@ -[{"name":"bare","version":"v20.18.0","requests":"47136.0","latency":"20.70","throughput":"8.41"},{"name":"kita","version":"1.1.36","hasRouter":true,"requests":"46696.8","latency":"20.92","throughput":"8.37"},{"name":"connect","version":"3.7.0","requests":"46184.0","latency":"21.15","throughput":"8.24"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"46174.4","latency":"21.15","throughput":"8.23"},{"name":"fastify","version":"4.28.1","hasRouter":true,"requests":"46019.2","latency":"21.22","throughput":"8.25"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"45936.0","latency":"21.27","throughput":"8.19"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"44892.0","latency":"21.78","throughput":"8.01"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"44794.4","latency":"21.82","throughput":"7.99"},{"name":"server-base","version":"7.1.32","requests":"44270.4","latency":"22.09","throughput":"7.90"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"43028.0","latency":"22.74","throughput":"7.67"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"42755.2","latency":"22.89","throughput":"7.62"},{"name":"h3","version":"1.13.0","requests":"41536.8","latency":"23.59","throughput":"7.41"},{"name":"hono","version":"4.6.7","hasRouter":true,"requests":"40050.4","latency":"24.47","throughput":"7.14"},{"name":"h3-router","version":"1.13.0","hasRouter":true,"requests":"39867.2","latency":"24.59","throughput":"7.11"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"37510.6","latency":"26.15","throughput":"6.69"},{"name":"koa","version":"2.15.3","requests":"36303.8","latency":"27.04","throughput":"6.47"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"36197.0","latency":"27.11","throughput":"13.01"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"34784.4","latency":"28.25","throughput":"6.27"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"33979.6","latency":"28.92","throughput":"6.06"},{"name":"koa-router","version":"12.0.1","hasRouter":true,"requests":"33530.4","latency":"29.32","throughput":"5.98"},{"name":"hapi","version":"21.3.12","hasRouter":true,"requests":"31444.0","latency":"31.30","throughput":"5.61"},{"name":"fastify-big-json","version":"4.28.1","hasRouter":true,"requests":"11889.0","latency":"83.53","throughput":"136.79"},{"name":"express","version":"4.21.1","hasRouter":true,"requests":"10881.2","latency":"91.32","throughput":"1.94"},{"name":"express-with-middlewares","version":"4.21.1","hasRouter":true,"requests":"9986.8","latency":"99.52","throughput":"3.71"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"},{"name":"micro","version":"10.0.1","requests":"N/A","latency":"N/A","throughput":"N/A"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"},{"name":"trpc-router","version":"10.45.2","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}] \ No newline at end of file +[{"name":"fastify","version":"4.28.1","hasRouter":true,"requests":"47848.0","latency":"20.41","throughput":"8.58"},{"name":"bare","version":"v20.18.0","requests":"47789.6","latency":"20.43","throughput":"8.52"},{"name":"kita","version":"1.1.36","hasRouter":true,"requests":"47612.8","latency":"20.52","throughput":"8.54"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"47496.0","latency":"20.54","throughput":"8.47"},{"name":"connect","version":"3.7.0","requests":"47196.8","latency":"20.69","throughput":"8.42"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"46856.8","latency":"20.84","throughput":"8.36"},{"name":"server-base","version":"7.1.32","requests":"46410.4","latency":"21.03","throughput":"8.28"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"46170.4","latency":"21.17","throughput":"8.23"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"46011.2","latency":"21.21","throughput":"8.21"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"45170.4","latency":"21.64","throughput":"8.06"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"43708.0","latency":"22.37","throughput":"7.79"},{"name":"h3","version":"1.13.0","requests":"43062.4","latency":"22.72","throughput":"7.68"},{"name":"h3-router","version":"1.13.0","hasRouter":true,"requests":"40796.0","latency":"24.01","throughput":"7.28"},{"name":"hono","version":"4.6.8","hasRouter":true,"requests":"39916.8","latency":"24.54","throughput":"7.12"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"39320.8","latency":"24.93","throughput":"7.01"},{"name":"koa","version":"2.15.3","requests":"37432.2","latency":"26.23","throughput":"6.68"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"35227.0","latency":"27.87","throughput":"12.67"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"35183.0","latency":"27.92","throughput":"6.27"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"34290.2","latency":"28.65","throughput":"6.18"},{"name":"koa-router","version":"12.0.1","hasRouter":true,"requests":"33837.4","latency":"29.04","throughput":"6.03"},{"name":"hapi","version":"21.3.12","hasRouter":true,"requests":"32055.6","latency":"30.69","throughput":"5.72"},{"name":"fastify-big-json","version":"4.28.1","hasRouter":true,"requests":"11993.2","latency":"82.80","throughput":"137.99"},{"name":"express","version":"4.21.1","hasRouter":true,"requests":"10894.0","latency":"91.22","throughput":"1.94"},{"name":"express-with-middlewares","version":"4.21.1","hasRouter":true,"requests":"10054.1","latency":"98.83","throughput":"3.74"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"},{"name":"micro","version":"10.0.1","requests":"N/A","latency":"N/A","throughput":"N/A"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"},{"name":"trpc-router","version":"10.45.2","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}] \ No newline at end of file