Skip to content

Commit

Permalink
chore: update benchmark results
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Sep 30, 2024
1 parent ad7ccdd commit 5cc418b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
54 changes: 27 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,35 +46,35 @@ node ./benchmark [arguments (optional)]

* __Machine:__ linux x64 | 4 vCPUs | 15.6GB Mem
* __Node:__ `v20.17.0`
* __Run:__ Mon Sep 23 2024 01:47:20 GMT+0000 (Coordinated Universal Time)
* __Run:__ Mon Sep 30 2024 01:49:36 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.17.0 || 48157.6 | 20.27 | 8.59 |
| connect | 3.7.0 | | 47019.2 | 20.74 | 8.38 |
| fastify | 4.28.1 || 46896.0 | 20.81 | 8.41 |
| 0http | 3.5.3 | | 46489.6 | 21.01 | 8.29 |
| server-base-router | 7.1.32 | | 46448.0 | 21.01 | 8.28 |
| polka | 0.5.2 || 46421.6 | 21.03 | 8.28 |
| polkadot | 1.0.0 | | 46364.0 | 21.08 | 8.27 |
| server-base | 7.1.32 || 46288.8 | 21.09 | 8.25 |
| rayo | 1.4.6 || 46212.8 | 21.12 | 8.24 |
| micro | 10.0.1 || 45887.2 | 21.29 | 8.18 |
| connect-router | 1.3.8 || 44087.2 | 22.17 | 7.86 |
| h3 | 1.12.0 | | 42801.6 | 22.87 | 7.63 |
| restana | 4.9.9 | | 42366.4 | 23.11 | 7.56 |
| micro-route | 2.5.0 || 42266.4 | 23.17 | 7.54 |
| h3-router | 1.12.0 || 41398.4 | 23.65 | 7.38 |
| hono | 4.6.2 || 41198.4 | 23.79 | 7.35 |
| koa | 2.15.3 || 37051.2 | 26.47 | 6.61 |
| take-five | 2.0.0 || 35841.8 | 27.38 | 12.89 |
| koa-isomorphic-router | 1.0.1 || 35272.6 | 27.84 | 6.29 |
| restify | 11.1.0 || 34626.2 | 28.38 | 6.24 |
| koa-router | 12.0.1 || 33856.8 | 29.03 | 6.04 |
| hapi | 21.3.10 || 32115.2 | 30.64 | 5.73 |
| microrouter | 3.1.3 || 31008.8 | 31.74 | 5.53 |
| fastify-big-json | 4.28.1 || 11874.8 | 83.65 | 136.63 |
| express | 4.21.0 || 11156.8 | 89.05 | 1.99 |
| express-with-middlewares | 4.21.0 || 10401.8 | 95.55 | 3.87 |
| bare | v20.17.0 || 47945.6 | 20.36 | 8.55 |
| fastify | 5.0.0 | | 46100.8 | 21.18 | 8.27 |
| polka | 0.5.2 || 46033.6 | 21.21 | 8.21 |
| connect | 3.7.0 | | 45569.4 | 21.44 | 8.13 |
| server-base | 7.1.32 | | 45564.8 | 21.45 | 8.12 |
| rayo | 1.4.6 || 45308.0 | 21.58 | 8.08 |
| server-base-router | 7.1.32 | | 45208.0 | 21.63 | 8.06 |
| micro | 10.0.1 || 44620.8 | 21.91 | 7.96 |
| 0http | 3.5.3 || 44395.2 | 22.03 | 7.92 |
| polkadot | 1.0.0 || 44219.2 | 22.11 | 7.89 |
| connect-router | 1.3.8 || 43345.6 | 22.56 | 7.73 |
| micro-route | 2.5.0 | | 42116.8 | 23.25 | 7.51 |
| h3 | 1.12.0 | | 40780.8 | 24.02 | 7.27 |
| hono | 4.6.3 || 40492.8 | 24.19 | 7.22 |
| restana | 4.9.9 || 40243.2 | 24.34 | 7.18 |
| h3-router | 1.12.0 || 39540.0 | 24.80 | 7.05 |
| koa | 2.15.3 || 37335.2 | 26.28 | 6.66 |
| take-five | 2.0.0 || 35333.0 | 27.80 | 12.70 |
| restify | 11.1.0 || 34967.0 | 28.09 | 6.30 |
| koa-isomorphic-router | 1.0.1 || 34561.8 | 28.43 | 6.16 |
| koa-router | 12.0.1 || 34310.6 | 28.63 | 6.12 |
| hapi | 21.3.10 || 31561.0 | 31.18 | 5.63 |
| microrouter | 3.1.3 || 30209.2 | 32.59 | 5.39 |
| fastify-big-json | 5.0.0 || 11640.8 | 85.35 | 133.93 |
| express | 5.0.0 || 9944.8 | 99.92 | 1.77 |
| express-with-middlewares | 5.0.0 || 9047.5 | 109.92 | 3.36 |
| trpc-router | 10.45.2 || N/A | N/A | N/A |
2 changes: 1 addition & 1 deletion benchmark-results.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
[{"name":"bare","version":"v20.17.0","requests":"48157.6","latency":"20.27","throughput":"8.59"},{"name":"connect","version":"3.7.0","requests":"47019.2","latency":"20.74","throughput":"8.38"},{"name":"fastify","version":"4.28.1","hasRouter":true,"requests":"46896.0","latency":"20.81","throughput":"8.41"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"46489.6","latency":"21.01","throughput":"8.29"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"46448.0","latency":"21.01","throughput":"8.28"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"46421.6","latency":"21.03","throughput":"8.28"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"46364.0","latency":"21.08","throughput":"8.27"},{"name":"server-base","version":"7.1.32","requests":"46288.8","latency":"21.09","throughput":"8.25"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"46212.8","latency":"21.12","throughput":"8.24"},{"name":"micro","version":"10.0.1","requests":"45887.2","latency":"21.29","throughput":"8.18"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"44087.2","latency":"22.17","throughput":"7.86"},{"name":"h3","version":"1.12.0","requests":"42801.6","latency":"22.87","throughput":"7.63"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"42366.4","latency":"23.11","throughput":"7.56"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"42266.4","latency":"23.17","throughput":"7.54"},{"name":"h3-router","version":"1.12.0","hasRouter":true,"requests":"41398.4","latency":"23.65","throughput":"7.38"},{"name":"hono","version":"4.6.2","hasRouter":true,"requests":"41198.4","latency":"23.79","throughput":"7.35"},{"name":"koa","version":"2.15.3","requests":"37051.2","latency":"26.47","throughput":"6.61"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"35841.8","latency":"27.38","throughput":"12.89"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"35272.6","latency":"27.84","throughput":"6.29"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"34626.2","latency":"28.38","throughput":"6.24"},{"name":"koa-router","version":"12.0.1","hasRouter":true,"requests":"33856.8","latency":"29.03","throughput":"6.04"},{"name":"hapi","version":"21.3.10","hasRouter":true,"requests":"32115.2","latency":"30.64","throughput":"5.73"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"31008.8","latency":"31.74","throughput":"5.53"},{"name":"fastify-big-json","version":"4.28.1","hasRouter":true,"requests":"11874.8","latency":"83.65","throughput":"136.63"},{"name":"express","version":"4.21.0","hasRouter":true,"requests":"11156.8","latency":"89.05","throughput":"1.99"},{"name":"express-with-middlewares","version":"4.21.0","hasRouter":true,"requests":"10401.8","latency":"95.55","throughput":"3.87"},{"name":"trpc-router","version":"10.45.2","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}]
[{"name":"bare","version":"v20.17.0","requests":"47945.6","latency":"20.36","throughput":"8.55"},{"name":"fastify","version":"5.0.0","hasRouter":true,"requests":"46100.8","latency":"21.18","throughput":"8.27"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"46033.6","latency":"21.21","throughput":"8.21"},{"name":"connect","version":"3.7.0","requests":"45569.4","latency":"21.44","throughput":"8.13"},{"name":"server-base","version":"7.1.32","requests":"45564.8","latency":"21.45","throughput":"8.12"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"45308.0","latency":"21.58","throughput":"8.08"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"45208.0","latency":"21.63","throughput":"8.06"},{"name":"micro","version":"10.0.1","requests":"44620.8","latency":"21.91","throughput":"7.96"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"44395.2","latency":"22.03","throughput":"7.92"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"44219.2","latency":"22.11","throughput":"7.89"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"43345.6","latency":"22.56","throughput":"7.73"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"42116.8","latency":"23.25","throughput":"7.51"},{"name":"h3","version":"1.12.0","requests":"40780.8","latency":"24.02","throughput":"7.27"},{"name":"hono","version":"4.6.3","hasRouter":true,"requests":"40492.8","latency":"24.19","throughput":"7.22"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"40243.2","latency":"24.34","throughput":"7.18"},{"name":"h3-router","version":"1.12.0","hasRouter":true,"requests":"39540.0","latency":"24.80","throughput":"7.05"},{"name":"koa","version":"2.15.3","requests":"37335.2","latency":"26.28","throughput":"6.66"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"35333.0","latency":"27.80","throughput":"12.70"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"34967.0","latency":"28.09","throughput":"6.30"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"34561.8","latency":"28.43","throughput":"6.16"},{"name":"koa-router","version":"12.0.1","hasRouter":true,"requests":"34310.6","latency":"28.63","throughput":"6.12"},{"name":"hapi","version":"21.3.10","hasRouter":true,"requests":"31561.0","latency":"31.18","throughput":"5.63"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"30209.2","latency":"32.59","throughput":"5.39"},{"name":"fastify-big-json","version":"5.0.0","hasRouter":true,"requests":"11640.8","latency":"85.35","throughput":"133.93"},{"name":"express","version":"5.0.0","hasRouter":true,"requests":"9944.8","latency":"99.92","throughput":"1.77"},{"name":"express-with-middlewares","version":"5.0.0","hasRouter":true,"requests":"9047.5","latency":"109.92","throughput":"3.36"},{"name":"trpc-router","version":"10.45.2","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}]

0 comments on commit 5cc418b

Please sign in to comment.