foxify-benchmarks
web framework foxify benchmarks
TL;DR
- Foxify is, fast, easy to use & typescript ready web framework for Node.js
- This package shows how fast it is comparatively.
Installing
npm i -g foxify-benchmarks
Usage
foxify-benchmarks [arguments ]
Arguments
-h
: Help on how to use the tool.-V
: Version of the tool.compare
: Get comparative data for your benchmarks.
Benchmarks
- Machine: Ubuntu 18.04 (2.20 GHz Intel Core i7 | 8 GB)
- Method:
autocannon -c 100 -d 5 -p 10 localhost:3000
(two rounds; one warm-up, one to measure). - Node:
10.13.0
┌──────────────────────────┬──────────┬────────┬──────────────┬──────────────┬───────────────┐│ │ Version │ Router │ Requests/s │ Latency │ Throughput/Mb ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ micro │ 9.3.3 │ ✗ │ 27873.6 │ 3.49 │ 4.36 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ foxify │ 0.10.7 │ ✓ │ 27716.8 │ 3.51 │ 3.94 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ polka │ 0.5.1 │ ✓ │ 27688 │ 3.52 │ 3.09 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ fastify │ 1.13.0 │ ✓ │ 26654.4 │ 3.65 │ 4.17 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ rayo │ 1.2.5 │ ✓ │ 24772.8 │ 3.94 │ 2.76 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ bare │ v10.13.0 │ ✗ │ 22366.4 │ 4.37 │ 3.18 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ connect │ 3.6.6 │ ✗ │ 22350.4 │ 4.37 │ 3.18 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ foxify-with-middlewares │ 0.10.7 │ ✓ │ 21300.8 │ 4.58 │ 7.39 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ trek-engine-router │ │ ✓ │ 21198.4 │ 4.62 │ 3.01 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ trek-engine │ 1.0.5 │ ✗ │ 20942.41 │ 4.67 │ 2.98 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ koa │ 2.6.1 │ ✗ │ 20516.8 │ 4.77 │ 3.21 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ fastify-with-middlewares │ 1.13.0 │ ✓ │ 20324.8 │ 4.8 │ 7.35 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ connect-router │ 1.3.3 │ ✓ │ 20078.41 │ 4.86 │ 2.85 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ koa-router │ 7.4.0 │ ✓ │ 19713.6 │ 4.97 │ 3.08 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ hapi │ 17.7.0 │ ✓ │ 19662.41 │ 4.98 │ 3.08 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ total.js │ 3.0.0 │ ✓ │ 18740.8 │ 5.22 │ 5.33 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ micro-router │ │ ✓ │ 17592.8 │ 5.56 │ 2.75 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ express │ 4.16.4 │ ✓ │ 17468 │ 5.6 │ 2.73 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ express-route-prefix │ 4.16.4 │ ✓ │ 16933.6 │ 5.79 │ 5.89 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ restify │ 7.2.2 │ ✓ │ 14660 │ 6.39 │ 2.32 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ express-with-middlewares │ 4.16.4 │ ✓ │ 13224.8 │ 7.4 │ 4.78 ││ │ │ │ │ │ │├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤│ take-five │ 1.4.1 │ ✓ │ 9962.21 │ 9.56 │ 3.31 ││ │ │ │ │ │ │└──────────────────────────┴──────────┴────────┴──────────────┴──────────────┴───────────────┘