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 Dec 2, 2024
1 parent 6fdba86 commit 778c978
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 30 deletions.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,37 +67,37 @@ node ./benchmark [arguments (optional)]
# Benchmarks

* __Machine:__ linux x64 | 4 vCPUs | 15.6GB Mem
* __Node:__ `v20.18.0`
* __Run:__ Mon Nov 25 2024 01:54:14 GMT+0000 (Coordinated Universal Time)
* __Node:__ `v20.18.1`
* __Run:__ Mon Dec 02 2024 01:56:45 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 || 48153.6 | 20.32 | 8.59 |
| connect | 3.7.0 | | 47204.8 | 20.67 | 8.42 |
| fastify | 5.1.0 || 47047.2 | 20.75 | 8.43 |
| polka | 0.5.2 || 46537.6 | 20.98 | 8.30 |
| server-base-router | 7.1.32 || 46131.2 | 21.17 | 8.23 |
| micro | 10.0.1 || 46100.8 | 21.19 | 8.22 |
| rayo | 1.4.6 | | 45265.6 | 21.59 | 8.07 |
| server-base | 7.1.32 || 44880.0 | 21.78 | 8.00 |
| polkadot | 1.0.0 || 44768.8 | 21.85 | 7.98 |
| 0http | 3.5.3 || 44004.8 | 22.23 | 7.85 |
| connect-router | 1.3.8 || 43320.8 | 22.58 | 7.73 |
| micro-route | 2.5.0 || 42980.8 | 22.77 | 7.66 |
| adonisjs | 7.2.5 | | 42116.0 | 23.24 | 7.51 |
| h3-router | 1.13.0 || 41784.0 | 23.43 | 7.45 |
| h3 | 1.13.0 | | 41556.8 | 23.57 | 7.41 |
| hono | 4.6.11 || 40621.6 | 24.10 | 7.24 |
| restana | 4.9.9 || 39132.0 | 25.06 | 6.98 |
| koa | 2.15.3 || 37344.8 | 26.28 | 6.66 |
| take-five | 2.0.0 || 35909.4 | 27.32 | 12.91 |
| koa-isomorphic-router | 1.0.1 || 35736.6 | 27.49 | 6.37 |
| restify | 11.1.0 || 34616.0 | 28.38 | 6.24 |
| koa-router | 13.1.0 || 34131.0 | 28.77 | 6.09 |
| hapi | 21.3.12 || 31763.2 | 30.98 | 5.66 |
| microrouter | 3.1.3 || 30180.4 | 32.62 | 5.38 |
| fastify-big-json | 5.1.0 || 12102.0 | 82.06 | 139.24 |
| express | 5.0.1 || 10175.2 | 97.69 | 1.81 |
| express-with-middlewares | 5.0.1 || 9319.4 | 106.72 | 3.47 |
| 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 |
| 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.18.0","requests":"48153.6","latency":"20.32","throughput":"8.59"},{"name":"connect","version":"3.7.0","requests":"47204.8","latency":"20.67","throughput":"8.42"},{"name":"fastify","version":"5.1.0","hasRouter":true,"requests":"47047.2","latency":"20.75","throughput":"8.43"},{"name":"polka","version":"0.5.2","hasRouter":true,"requests":"46537.6","latency":"20.98","throughput":"8.30"},{"name":"server-base-router","version":"7.1.32","hasRouter":true,"requests":"46131.2","latency":"21.17","throughput":"8.23"},{"name":"micro","version":"10.0.1","requests":"46100.8","latency":"21.19","throughput":"8.22"},{"name":"rayo","version":"1.4.6","hasRouter":true,"requests":"45265.6","latency":"21.59","throughput":"8.07"},{"name":"server-base","version":"7.1.32","requests":"44880.0","latency":"21.78","throughput":"8.00"},{"name":"polkadot","version":"1.0.0","hasRouter":false,"requests":"44768.8","latency":"21.85","throughput":"7.98"},{"name":"0http","version":"3.5.3","hasRouter":true,"requests":"44004.8","latency":"22.23","throughput":"7.85"},{"name":"connect-router","version":"1.3.8","hasRouter":true,"requests":"43320.8","latency":"22.58","throughput":"7.73"},{"name":"micro-route","version":"2.5.0","hasRouter":true,"requests":"42980.8","latency":"22.77","throughput":"7.66"},{"name":"adonisjs","version":"7.2.5","hasRouter":true,"requests":"42116.0","latency":"23.24","throughput":"7.51"},{"name":"h3-router","version":"1.13.0","hasRouter":true,"requests":"41784.0","latency":"23.43","throughput":"7.45"},{"name":"h3","version":"1.13.0","requests":"41556.8","latency":"23.57","throughput":"7.41"},{"name":"hono","version":"4.6.11","hasRouter":true,"requests":"40621.6","latency":"24.10","throughput":"7.24"},{"name":"restana","version":"4.9.9","hasRouter":true,"requests":"39132.0","latency":"25.06","throughput":"6.98"},{"name":"koa","version":"2.15.3","requests":"37344.8","latency":"26.28","throughput":"6.66"},{"name":"take-five","version":"2.0.0","hasRouter":true,"requests":"35909.4","latency":"27.32","throughput":"12.91"},{"name":"koa-isomorphic-router","version":"1.0.1","hasRouter":true,"requests":"35736.6","latency":"27.49","throughput":"6.37"},{"name":"restify","version":"11.1.0","hasRouter":true,"requests":"34616.0","latency":"28.38","throughput":"6.24"},{"name":"koa-router","version":"13.1.0","hasRouter":true,"requests":"34131.0","latency":"28.77","throughput":"6.09"},{"name":"hapi","version":"21.3.12","hasRouter":true,"requests":"31763.2","latency":"30.98","throughput":"5.66"},{"name":"microrouter","version":"3.1.3","hasRouter":true,"requests":"30180.4","latency":"32.62","throughput":"5.38"},{"name":"fastify-big-json","version":"5.1.0","hasRouter":true,"requests":"12102.0","latency":"82.06","throughput":"139.24"},{"name":"express","version":"5.0.1","hasRouter":true,"requests":"10175.2","latency":"97.69","throughput":"1.81"},{"name":"express-with-middlewares","version":"5.0.1","hasRouter":true,"requests":"9319.4","latency":"106.72","throughput":"3.47"},{"name":"trpc-router","version":"10.45.2","hasRouter":true,"requests":"N/A","latency":"N/A","throughput":"N/A"}]
[{"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"}]

0 comments on commit 778c978

Please sign in to comment.