From 7ba40ac352d190c797ceaecc7f0d0c78ac04d1c2 Mon Sep 17 00:00:00 2001 From: Github Actions <> Date: Thu, 5 Dec 2024 14:49:18 +0000 Subject: [PATCH] chore: update benchmark results --- README.md | 56 +++++++++++++++++++++--------------------- benchmark-results.json | 2 +- 2 files changed, 29 insertions(+), 29 deletions(-) diff --git a/README.md b/README.md index 32ecb0d2..4ca8e81f 100644 --- a/README.md +++ b/README.md @@ -68,36 +68,36 @@ node ./benchmark [arguments (optional)] * __Machine:__ linux x64 | 4 vCPUs | 15.6GB Mem * __Node:__ `v20.18.1` -* __Run:__ Mon Dec 02 2024 01:56:45 GMT+0000 (Coordinated Universal Time) +* __Run:__ Thu Dec 05 2024 14:49:17 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.1 | ✗ | 47789.6 | 20.43 | 8.52 | -| fastify | 5.1.0 | ✓ | 46716.0 | 20.90 | 8.38 | -| rayo | 1.4.6 | ✓ | 46516.0 | 20.99 | 8.30 | -| server-base-router | 7.1.32 | ✓ | 46280.0 | 21.11 | 8.25 | -| polka | 0.5.2 | ✓ | 46239.2 | 21.11 | 8.25 | -| connect | 3.7.0 | ✗ | 46157.6 | 21.15 | 8.23 | -| server-base | 7.1.32 | ✗ | 45875.2 | 21.29 | 8.18 | -| micro | 10.0.1 | ✗ | 45723.2 | 21.37 | 8.15 | -| polkadot | 1.0.0 | ✗ | 45646.4 | 21.41 | 8.14 | -| 0http | 3.5.3 | ✓ | 44406.4 | 22.02 | 7.92 | -| connect-router | 1.3.8 | ✓ | 43641.6 | 22.40 | 7.78 | -| adonisjs | 7.3.0 | ✓ | 42114.4 | 23.24 | 7.51 | -| h3 | 1.13.0 | ✗ | 41976.8 | 23.33 | 7.49 | -| micro-route | 2.5.0 | ✓ | 41761.6 | 23.45 | 7.45 | -| h3-router | 1.13.0 | ✓ | 41257.6 | 23.74 | 7.36 | -| hono | 4.6.12 | ✓ | 40446.4 | 24.21 | 7.21 | -| restana | 4.9.9 | ✓ | 39980.0 | 24.52 | 7.13 | -| koa | 2.15.3 | ✗ | 37270.6 | 26.32 | 6.65 | -| restify | 11.1.0 | ✓ | 35218.0 | 27.89 | 6.35 | -| take-five | 2.0.0 | ✓ | 34769.0 | 28.26 | 12.50 | -| koa-isomorphic-router | 1.0.1 | ✓ | 34505.8 | 28.48 | 6.15 | -| koa-router | 13.1.0 | ✓ | 34079.8 | 28.85 | 6.08 | -| hapi | 21.3.12 | ✓ | 31563.8 | 31.18 | 5.63 | -| microrouter | 3.1.3 | ✓ | 30534.0 | 32.25 | 5.45 | -| fastify-big-json | 5.1.0 | ✓ | 12139.0 | 81.81 | 139.66 | -| express | 5.0.1 | ✓ | 10164.0 | 97.79 | 1.81 | -| express-with-middlewares | 5.0.1 | ✓ | 9172.0 | 108.42 | 3.41 | +| bare | v20.18.1 | ✗ | 46369.6 | 21.06 | 8.27 | +| fastify | 5.1.0 | ✓ | 46315.2 | 21.09 | 8.30 | +| polka | 0.5.2 | ✓ | 46036.0 | 21.22 | 8.21 | +| rayo | 1.4.6 | ✓ | 45401.6 | 21.52 | 8.10 | +| connect | 3.7.0 | ✗ | 45092.0 | 21.68 | 8.04 | +| server-base | 7.1.32 | ✗ | 44644.0 | 21.91 | 7.96 | +| micro | 10.0.1 | ✗ | 44632.8 | 21.90 | 7.96 | +| polkadot | 1.0.0 | ✗ | 44587.2 | 21.93 | 7.95 | +| server-base-router | 7.1.32 | ✓ | 44328.0 | 22.06 | 7.91 | +| 0http | 3.5.3 | ✓ | 44194.4 | 22.13 | 7.88 | +| connect-router | 1.3.8 | ✓ | 41908.0 | 23.36 | 7.47 | +| micro-route | 2.5.0 | ✓ | 41536.8 | 23.57 | 7.41 | +| adonisjs | 7.3.0 | ✓ | 41030.4 | 23.87 | 7.32 | +| h3 | 1.13.0 | ✗ | 40880.8 | 23.96 | 7.29 | +| hono | 4.6.12 | ✓ | 40224.8 | 24.35 | 7.17 | +| restana | 4.9.9 | ✓ | 39075.2 | 25.09 | 6.97 | +| h3-router | 1.13.0 | ✓ | 38669.6 | 25.37 | 6.90 | +| koa | 2.15.3 | ✗ | 37104.0 | 26.45 | 6.62 | +| koa-isomorphic-router | 1.0.1 | ✓ | 34642.0 | 28.36 | 6.18 | +| restify | 11.1.0 | ✓ | 34602.8 | 28.40 | 6.24 | +| take-five | 2.0.0 | ✓ | 34304.8 | 28.64 | 12.33 | +| koa-router | 13.1.0 | ✓ | 33248.0 | 29.58 | 5.93 | +| hapi | 21.3.12 | ✓ | 31761.2 | 30.97 | 5.66 | +| microrouter | 3.1.3 | ✓ | 29769.2 | 33.09 | 5.31 | +| fastify-big-json | 5.1.0 | ✓ | 11801.6 | 84.18 | 135.80 | +| express | 5.0.1 | ✓ | 9836.9 | 101.07 | 1.75 | +| express-with-middlewares | 5.0.1 | ✓ | 9367.5 | 106.13 | 3.48 | | trpc-router | 10.45.2 | ✓ | N/A | N/A | N/A | diff --git a/benchmark-results.json b/benchmark-results.json index 2ceccfde..7bf6c285 100644 --- a/benchmark-results.json +++ b/benchmark-results.json @@ -1 +1 @@ -[{"name":"bare","version":"v20.18.1","requests":"47789.6","latency":"20.43","throughput":"8.52"},{"name":"fastify","version":"5.1.0","hasRouter":true,"requests":"46716.0","latency":"20.90","throughput":"8.38"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"46516.0","latency":"20.99","throughput":"8.30"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"46280.0","latency":"21.11","throughput":"8.25"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"46239.2","latency":"21.11","throughput":"8.25"},{"name":"connect","version":"3.7.0","requests":"46157.6","latency":"21.15","throughput":"8.23"},{"name":"server-base","version":"7.1.32","requests":"45875.2","latency":"21.29","throughput":"8.18"},{"name":"micro","version":"10.0.1","requests":"45723.2","latency":"21.37","throughput":"8.15"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"45646.4","latency":"21.41","throughput":"8.14"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"44406.4","latency":"22.02","throughput":"7.92"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"43641.6","latency":"22.40","throughput":"7.78"},{"name":"adonisjs","version":"7.3.0","hasRouter":true,"requests":"42114.4","latency":"23.24","throughput":"7.51"},{"name":"h3","version":"1.13.0","requests":"41976.8","latency":"23.33","throughput":"7.49"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"41761.6","latency":"23.45","throughput":"7.45"},{"name":"h3-router","version":"1.13.0","hasRouter":true,"requests":"41257.6","latency":"23.74","throughput":"7.36"},{"name":"hono","version":"4.6.12","hasRouter":true,"requests":"40446.4","latency":"24.21","throughput":"7.21"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"39980.0","latency":"24.52","throughput":"7.13"},{"name":"koa","version":"2.15.3","requests":"37270.6","latency":"26.32","throughput":"6.65"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"35218.0","latency":"27.89","throughput":"6.35"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"34769.0","latency":"28.26","throughput":"12.50"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"34505.8","latency":"28.48","throughput":"6.15"},{"name":"koa-router","version":"13.1.0","hasRouter":true,"requests":"34079.8","latency":"28.85","throughput":"6.08"},{"name":"hapi","version":"21.3.12","hasRouter":true,"requests":"31563.8","latency":"31.18","throughput":"5.63"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"30534.0","latency":"32.25","throughput":"5.45"},{"name":"fastify-big-json","version":"5.1.0","hasRouter":true,"requests":"12139.0","latency":"81.81","throughput":"139.66"},{"name":"express","version":"5.0.1","hasRouter":true,"requests":"10164.0","latency":"97.79","throughput":"1.81"},{"name":"express-with-middlewares","version":"5.0.1","hasRouter":true,"requests":"9172.0","latency":"108.42","throughput":"3.41"},{"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":"bare","version":"v20.18.1","requests":"46369.6","latency":"21.06","throughput":"8.27"},{"name":"fastify","version":"5.1.0","hasRouter":true,"requests":"46315.2","latency":"21.09","throughput":"8.30"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"46036.0","latency":"21.22","throughput":"8.21"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"45401.6","latency":"21.52","throughput":"8.10"},{"name":"connect","version":"3.7.0","requests":"45092.0","latency":"21.68","throughput":"8.04"},{"name":"server-base","version":"7.1.32","requests":"44644.0","latency":"21.91","throughput":"7.96"},{"name":"micro","version":"10.0.1","requests":"44632.8","latency":"21.90","throughput":"7.96"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"44587.2","latency":"21.93","throughput":"7.95"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"44328.0","latency":"22.06","throughput":"7.91"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"44194.4","latency":"22.13","throughput":"7.88"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"41908.0","latency":"23.36","throughput":"7.47"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"41536.8","latency":"23.57","throughput":"7.41"},{"name":"adonisjs","version":"7.3.0","hasRouter":true,"requests":"41030.4","latency":"23.87","throughput":"7.32"},{"name":"h3","version":"1.13.0","requests":"40880.8","latency":"23.96","throughput":"7.29"},{"name":"hono","version":"4.6.12","hasRouter":true,"requests":"40224.8","latency":"24.35","throughput":"7.17"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"39075.2","latency":"25.09","throughput":"6.97"},{"name":"h3-router","version":"1.13.0","hasRouter":true,"requests":"38669.6","latency":"25.37","throughput":"6.90"},{"name":"koa","version":"2.15.3","requests":"37104.0","latency":"26.45","throughput":"6.62"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"34642.0","latency":"28.36","throughput":"6.18"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"34602.8","latency":"28.40","throughput":"6.24"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"34304.8","latency":"28.64","throughput":"12.33"},{"name":"koa-router","version":"13.1.0","hasRouter":true,"requests":"33248.0","latency":"29.58","throughput":"5.93"},{"name":"hapi","version":"21.3.12","hasRouter":true,"requests":"31761.2","latency":"30.97","throughput":"5.66"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"29769.2","latency":"33.09","throughput":"5.31"},{"name":"fastify-big-json","version":"5.1.0","hasRouter":true,"requests":"11801.6","latency":"84.18","throughput":"135.80"},{"name":"express","version":"5.0.1","hasRouter":true,"requests":"9836.9","latency":"101.07","throughput":"1.75"},{"name":"express-with-middlewares","version":"5.0.1","hasRouter":true,"requests":"9367.5","latency":"106.13","throughput":"3.48"},{"name":"trpc-router","version":"10.45.2","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}] \ No newline at end of file