1.0.0 • Published 6 years ago

fastify-benchmarks v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
6 years ago

Build Status Coverage Status js-standard-style NPM version NPM downloads Gitter

TL;DR

  • Fastify is, fast and low overhead web framework for Node.js
  • This package shows how fast it is comparatively.

Installing

npm i -g fastify-benchmarks

Usage

benchmark [arguments (optional)]

Arguments

  • -h: Help on how to use the tool.
  • compare: Get comparative data for your benchmarks.

You may also compare all test results, at once, in a single table; benchmark compare -t

You can also extend the comparison table with percentage values based on fastest result; benchmark compare -p

Benchmarks

  • Machine: CPU-optimized server (DigitalOcean, 32 GB RAM, 16 vCPUs, Ubuntu 18.04.2 x64).
  • Method: autocannon -c 100 -d 5 -p 10 localhost:3000 (two rounds; oneq to warm-up, one to measure).
  • Node: 10.15.2
RouterRequests/sLatencyThroughput/Mb
rayo76372.31.219.01
polka74182.41.278.22
fastify70854.41.3411.15
micro68636.81.3810.85
connect605921.578.55
bare591201.618.55
trek-router573281.678.07
spirit55804.81.488.65
trek-engine55548.81.737.92
koa540641.778.53
spirit-router52598.41.68.18
connect-router51171.21.877.33
koa-router48438.41.997.63
total.js46595.22.0613.15
express-route-prefix43324.82.2215.05
hapi39036.812.486.08
express388002.496.13
microrouter37865.62.555.97
restify34609.62.565.47
take-five30164.82.8410.05
express-with-middlewares28750.43.3810.35
fastify-big-json11256.88.7127.60