foxify-benchmarks

web framework foxify benchmarks

Usage no npm install needed!

<script type="module">
  import foxifyBenchmarks from 'https://cdn.skypack.dev/foxify-benchmarks';
</script>

README

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 (optional)]

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 │
│                          │          │        │ (% of micro) │ (% of micro) │ (% of micro)  │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ micro                    │ 9.3.3    │ ✗      │ 27873.6      │ 3.49         │ 4.36          │
│                          │          │        │ (100.00)     │ (100.00)     │ (100.00)      │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ foxify                   │ 0.10.7   │ ✓      │ 27716.8      │ 3.51         │ 3.94          │
│                          │          │        │ (99.44)      │ (100.57)     │ (90.37)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ polka                    │ 0.5.1    │ ✓      │ 27688        │ 3.52         │ 3.09          │
│                          │          │        │ (99.33)      │ (100.86)     │ (70.89)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ fastify                  │ 1.13.0   │ ✓      │ 26654.4      │ 3.65         │ 4.17          │
│                          │          │        │ (95.63)      │ (104.58)     │ (95.64)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ rayo                     │ 1.2.5    │ ✓      │ 24772.8      │ 3.94         │ 2.76          │
│                          │          │        │ (88.88)      │ (112.89)     │ (63.42)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ bare                     │ v10.13.0 │ ✗      │ 22366.4      │ 4.37         │ 3.18          │
│                          │          │        │ (80.24)      │ (125.21)     │ (72.91)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ connect                  │ 3.6.6    │ ✗      │ 22350.4      │ 4.37         │ 3.18          │
│                          │          │        │ (80.18)      │ (125.21)     │ (72.86)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ foxify-with-middlewares  │ 0.10.7   │ ✓      │ 21300.8      │ 4.58         │ 7.39          │
│                          │          │        │ (76.42)      │ (131.23)     │ (169.61)      │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ trek-engine-router       │          │ ✓      │ 21198.4      │ 4.62         │ 3.01          │
│                          │          │        │ (76.05)      │ (132.38)     │ (69.09)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ trek-engine              │ 1.0.5    │ ✗      │ 20942.41     │ 4.67         │ 2.98          │
│                          │          │        │ (75.13)      │ (133.81)     │ (68.27)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ koa                      │ 2.6.1    │ ✗      │ 20516.8      │ 4.77         │ 3.21          │
│                          │          │        │ (73.61)      │ (136.68)     │ (73.63)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ fastify-with-middlewares │ 1.13.0   │ ✓      │ 20324.8      │ 4.8          │ 7.35          │
│                          │          │        │ (72.92)      │ (137.54)     │ (168.52)      │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ connect-router           │ 1.3.3    │ ✓      │ 20078.41     │ 4.86         │ 2.85          │
│                          │          │        │ (72.03)      │ (139.26)     │ (65.47)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ koa-router               │ 7.4.0    │ ✓      │ 19713.6      │ 4.97         │ 3.08          │
│                          │          │        │ (70.72)      │ (142.41)     │ (70.75)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ hapi                     │ 17.7.0   │ ✓      │ 19662.41     │ 4.98         │ 3.08          │
│                          │          │        │ (70.54)      │ (142.69)     │ (70.55)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ total.js                 │ 3.0.0    │ ✓      │ 18740.8      │ 5.22         │ 5.33          │
│                          │          │        │ (67.23)      │ (149.57)     │ (122.19)      │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ micro-router             │          │ ✓      │ 17592.8      │ 5.56         │ 2.75          │
│                          │          │        │ (63.12)      │ (159.31)     │ (63.11)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ express                  │ 4.16.4   │ ✓      │ 17468        │ 5.6          │ 2.73          │
│                          │          │        │ (62.67)      │ (160.46)     │ (62.67)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ express-route-prefix     │ 4.16.4   │ ✓      │ 16933.6      │ 5.79         │ 5.89          │
│                          │          │        │ (60.75)      │ (165.90)     │ (135.24)      │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ restify                  │ 7.2.2    │ ✓      │ 14660        │ 6.39         │ 2.32          │
│                          │          │        │ (52.59)      │ (183.09)     │ (53.24)       │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ express-with-middlewares │ 4.16.4   │ ✓      │ 13224.8      │ 7.4          │ 4.78          │
│                          │          │        │ (47.45)      │ (212.03)     │ (109.64)      │
├──────────────────────────┼──────────┼────────┼──────────────┼──────────────┼───────────────┤
│ take-five                │ 1.4.1    │ ✓      │ 9962.21      │ 9.56         │ 3.31          │
│                          │          │        │ (35.74)      │ (273.93)     │ (75.83)       │
└──────────────────────────┴──────────┴────────┴──────────────┴──────────────┴───────────────┘