diff --git a/README.md b/README.md index b6789e61..675c65e6 100644 --- a/README.md +++ b/README.md @@ -50,35 +50,35 @@ benchmark [arguments (optional)] * __Machine:__ linux x64 | 4 vCPUs | 15.6GB Mem * __Node:__ `v20.11.0` -* __Run:__ Mon Feb 05 2024 01:31:43 GMT+0000 (Coordinated Universal Time) +* __Run:__ Mon Feb 12 2024 01:30:46 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 | | :-- | --: | --: | :-: | --: | --: | -| polkadot | 1.0.0 | ✗ | 51949.6 | 18.75 | 9.26 | -| h3-router | 1.10.1 | ✓ | 46184.8 | 21.15 | 8.24 | -| h3 | 1.10.1 | ✗ | 45827.2 | 21.32 | 8.17 | -| bare | v20.11.0 | ✗ | 45445.6 | 21.50 | 8.10 | -| 0http | 3.5.2 | ✓ | 44336.0 | 22.06 | 7.91 | -| fastify | 4.26.0 | ✓ | 43677.6 | 22.40 | 7.83 | -| connect | 3.7.0 | ✗ | 43676.0 | 22.40 | 7.79 | -| polka | 0.5.2 | ✓ | 43608.8 | 22.43 | 7.78 | -| rayo | 1.4.6 | ✓ | 43536.8 | 22.47 | 7.76 | -| server-base-router | 7.1.32 | ✓ | 43412.0 | 22.53 | 7.74 | -| server-base | 7.1.32 | ✗ | 43310.4 | 22.58 | 7.72 | -| connect-router | 1.3.8 | ✓ | 41559.2 | 23.56 | 7.41 | -| restana | 4.9.7 | ✓ | 37582.2 | 26.11 | 6.70 | -| koa | 2.15.0 | ✗ | 35275.8 | 27.85 | 6.29 | -| hono | 3.12.10 | ✓ | 34144.2 | 28.78 | 6.09 | -| take-five | 2.0.0 | ✓ | 33445.8 | 29.39 | 12.02 | -| restify | 11.1.0 | ✓ | 32948.6 | 29.85 | 5.94 | -| koa-isomorphic-router | 1.0.1 | ✓ | 32502.2 | 30.26 | 5.80 | -| koa-router | 12.0.1 | ✓ | 32440.2 | 30.31 | 5.79 | -| hapi | 21.3.3 | ✓ | 29838.8 | 33.01 | 5.32 | -| fastify-big-json | 4.26.0 | ✓ | 11192.2 | 88.78 | 128.77 | -| express | 4.18.2 | ✓ | 10281.4 | 96.68 | 1.83 | -| express-with-middlewares | 4.18.2 | ✓ | 9716.1 | 102.30 | 3.61 | +| h3 | 1.10.1 | ✗ | 46774.4 | 20.87 | 8.34 | +| 0http | 3.5.2 | ✓ | 46124.0 | 21.19 | 8.23 | +| bare | v20.11.0 | ✗ | 45696.8 | 21.38 | 8.15 | +| fastify | 4.26.0 | ✓ | 44116.8 | 22.17 | 7.91 | +| rayo | 1.4.6 | ✓ | 44093.6 | 22.18 | 7.86 | +| connect | 3.7.0 | ✗ | 44041.8 | 22.21 | 7.85 | +| polka | 0.5.2 | ✓ | 43724.0 | 22.37 | 7.80 | +| server-base-router | 7.1.32 | ✓ | 43354.4 | 22.56 | 7.73 | +| server-base | 7.1.32 | ✗ | 43111.2 | 22.69 | 7.69 | +| polkadot | 1.0.0 | ✗ | 42760.8 | 22.89 | 7.63 | +| h3-router | 1.10.1 | ✓ | 42312.8 | 23.13 | 7.55 | +| connect-router | 1.3.8 | ✓ | 41048.0 | 23.86 | 7.32 | +| restana | 4.9.7 | ✓ | 36109.4 | 27.19 | 6.44 | +| koa | 2.15.0 | ✗ | 35409.4 | 27.74 | 6.31 | +| hono | 3.12.12 | ✓ | 34475.2 | 28.51 | 6.15 | +| take-five | 2.0.0 | ✓ | 34345.4 | 28.62 | 12.35 | +| koa-isomorphic-router | 1.0.1 | ✓ | 33524.8 | 29.32 | 5.98 | +| restify | 11.1.0 | ✓ | 32586.6 | 30.20 | 5.87 | +| koa-router | 12.0.1 | ✓ | 32132.6 | 30.62 | 5.73 | +| hapi | 21.3.3 | ✓ | 29671.6 | 33.19 | 5.29 | +| fastify-big-json | 4.26.0 | ✓ | 11196.6 | 88.75 | 128.82 | +| express | 4.18.2 | ✓ | 10648.8 | 93.28 | 1.90 | +| express-with-middlewares | 4.18.2 | ✓ | 9880.2 | 100.60 | 3.67 | | 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 | -| trpc-router | 10.45.0 | ✓ | N/A | N/A | N/A | +| trpc-router | 10.45.1 | ✓ | N/A | N/A | N/A | diff --git a/benchmark-results.json b/benchmark-results.json index 473d8e8c..5ce97266 100644 --- a/benchmark-results.json +++ b/benchmark-results.json @@ -1 +1 @@ -[{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"51949.6","latency":"18.75","throughput":"9.26"},{"name":"h3-router","version":"1.10.1","hasRouter":true,"requests":"46184.8","latency":"21.15","throughput":"8.24"},{"name":"h3","version":"1.10.1","requests":"45827.2","latency":"21.32","throughput":"8.17"},{"name":"bare","version":"v20.11.0","requests":"45445.6","latency":"21.50","throughput":"8.10"},{"name":"0http","version":"3.5.2","hasRouter":true,"requests":"44336.0","latency":"22.06","throughput":"7.91"},{"name":"fastify","version":"4.26.0","hasRouter":true,"requests":"43677.6","latency":"22.40","throughput":"7.83"},{"name":"connect","version":"3.7.0","requests":"43676.0","latency":"22.40","throughput":"7.79"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"43608.8","latency":"22.43","throughput":"7.78"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"43536.8","latency":"22.47","throughput":"7.76"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"43412.0","latency":"22.53","throughput":"7.74"},{"name":"server-base","version":"7.1.32","requests":"43310.4","latency":"22.58","throughput":"7.72"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"41559.2","latency":"23.56","throughput":"7.41"},{"name":"restana","version":"4.9.7","hasRouter":true,"requests":"37582.2","latency":"26.11","throughput":"6.70"},{"name":"koa","version":"2.15.0","requests":"35275.8","latency":"27.85","throughput":"6.29"},{"name":"hono","version":"3.12.10","hasRouter":true,"requests":"34144.2","latency":"28.78","throughput":"6.09"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"33445.8","latency":"29.39","throughput":"12.02"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"32948.6","latency":"29.85","throughput":"5.94"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"32502.2","latency":"30.26","throughput":"5.80"},{"name":"koa-router","version":"12.0.1","hasRouter":true,"requests":"32440.2","latency":"30.31","throughput":"5.79"},{"name":"hapi","version":"21.3.3","hasRouter":true,"requests":"29838.8","latency":"33.01","throughput":"5.32"},{"name":"fastify-big-json","version":"4.26.0","hasRouter":true,"requests":"11192.2","latency":"88.78","throughput":"128.77"},{"name":"express","version":"4.18.2","hasRouter":true,"requests":"10281.4","latency":"96.68","throughput":"1.83"},{"name":"express-with-middlewares","version":"4.18.2","hasRouter":true,"requests":"9716.1","latency":"102.30","throughput":"3.61"},{"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.0","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}] \ No newline at end of file +[{"name":"h3","version":"1.10.1","requests":"46774.4","latency":"20.87","throughput":"8.34"},{"name":"0http","version":"3.5.2","hasRouter":true,"requests":"46124.0","latency":"21.19","throughput":"8.23"},{"name":"bare","version":"v20.11.0","requests":"45696.8","latency":"21.38","throughput":"8.15"},{"name":"fastify","version":"4.26.0","hasRouter":true,"requests":"44116.8","latency":"22.17","throughput":"7.91"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"44093.6","latency":"22.18","throughput":"7.86"},{"name":"connect","version":"3.7.0","requests":"44041.8","latency":"22.21","throughput":"7.85"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"43724.0","latency":"22.37","throughput":"7.80"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"43354.4","latency":"22.56","throughput":"7.73"},{"name":"server-base","version":"7.1.32","requests":"43111.2","latency":"22.69","throughput":"7.69"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"42760.8","latency":"22.89","throughput":"7.63"},{"name":"h3-router","version":"1.10.1","hasRouter":true,"requests":"42312.8","latency":"23.13","throughput":"7.55"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"41048.0","latency":"23.86","throughput":"7.32"},{"name":"restana","version":"4.9.7","hasRouter":true,"requests":"36109.4","latency":"27.19","throughput":"6.44"},{"name":"koa","version":"2.15.0","requests":"35409.4","latency":"27.74","throughput":"6.31"},{"name":"hono","version":"3.12.12","hasRouter":true,"requests":"34475.2","latency":"28.51","throughput":"6.15"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"34345.4","latency":"28.62","throughput":"12.35"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"33524.8","latency":"29.32","throughput":"5.98"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"32586.6","latency":"30.20","throughput":"5.87"},{"name":"koa-router","version":"12.0.1","hasRouter":true,"requests":"32132.6","latency":"30.62","throughput":"5.73"},{"name":"hapi","version":"21.3.3","hasRouter":true,"requests":"29671.6","latency":"33.19","throughput":"5.29"},{"name":"fastify-big-json","version":"4.26.0","hasRouter":true,"requests":"11196.6","latency":"88.75","throughput":"128.82"},{"name":"express","version":"4.18.2","hasRouter":true,"requests":"10648.8","latency":"93.28","throughput":"1.90"},{"name":"express-with-middlewares","version":"4.18.2","hasRouter":true,"requests":"9880.2","latency":"100.60","throughput":"3.67"},{"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.1","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}] \ No newline at end of file