/benchmarks

Fast and low overhead web framework fastify benchmarks.

Primary LanguageJavaScriptMIT LicenseMIT

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: Windows 10 Enterprise | 6 core | 16GB.
  • Method: autocannon -c 100 -d 40 -p 10 localhost:3000 (two rounds; one to warm-up, one to measure).
  • Node: v10.16.0
Router Requests/s Latency Throughput/Mb
bare 64390.8 1.49 10.07
express 40083.2 2.43 6.27
lib-http 67637.6 1.42 10.58
lib-http-big-json 13226.2 7.45 151.88
fastify 65866.4 1.46 10.30
fastify-big-json 12813.8 7.69 147.14
koa 53052.0 1.82 8.30
polka 63673.6 1.51 9.96