Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including fastify-benchmarks with all npm packages installed. Try it out:

fastify-benchmarks lists no main file and has no index.js, so it can't be directly required. If this is a mistake, please let us know. It may however contain internal files that you can require manually:

// require("fastify-benchmarks/[??]")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

fastify-benchmarks v1.0.0

Benchmarks for Fastify, a fast and low-overhead web framework.

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

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free