Skip to content

About

Fastify benchmarks with Kita

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

0 watching

Forks

 
 

Repository files navigation

CI Coverage Status js-standard-style NPM version NPM downloads Discord


TL;DR

  • Fastify is a fast and low overhead web framework for Node.js.
  • This package shows how fast it is comparatively.
  • For metrics (cold-start) see metrics.md

Requirements

To be included in this list, the framework should captivate users' interest. We have identified the following minimal requirements:

  • Ensure active usage: a minimum of 500 downloads per week
  • Maintain an active repository with at least one event (comment, issue, PR) in the last month
  • The framework must use the Node.js HTTP module

Usage

Clone this repo. Then

node ./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: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v20.20.2
  • Run: Mon Nov 30 2026 05:51:14 GMT+0000 (Coordinated Universal Time)
  • Method: autocannon -c 100 -d 40 -p 10 localhost:3000 (two rounds; one to warm-up, one to measure)
Version Router Requests/s Latency (ms) Throughput/Mb
bare v20.20.2 ✗ 55288.0 17.60 9.86
rayo 1.4.6 ✓ 54561.6 17.81 9.73
polka 0.5.2 ✓ 54538.4 17.83 9.73
server-base 7.1.32 ✗ 53931.2 18.02 9.62
fastify 4.29.1 ✓ 53632.0 18.13 9.62
server-base-router 7.1.32 ✓ 53527.2 18.17 9.55
connect 3.7.0 ✗ 53489.6 18.18 9.54
kita 1.1.36 ✓ 53331.2 18.23 9.56
connect-router 1.3.8 ✓ 51724.8 18.85 9.22
polkadot 1.0.0 ✗ 48628.8 20.07 8.67
hono 4.13.23 ✓ 47691.2 20.48 7.82
0http 3.5.3 ✓ 45171.2 21.64 8.06
h3-router 1.15.11 ✓ 44704.8 21.88 7.97
h3 1.15.11 ✗ 44628.0 21.91 7.96
koa 2.16.4 ✗ 44324.8 22.06 7.90
restana 4.9.9 ✓ 43740.0 22.37 7.80
take-five 2.0.0 ✓ 43075.2 22.71 15.49
koa-isomorphic-router 1.0.1 ✓ 41722.4 23.48 7.44
restify 11.1.0 ✓ 41484.0 23.61 7.48
koa-router 12.0.1 ✓ 41028.8 23.86 7.32
hapi 21.4.14 ✓ 36399.4 26.98 6.49
express 4.22.3 ✓ 13062.0 75.99 2.33
express-with-middlewares 4.22.3 ✓ 12311.6 80.66 4.58
fastify-big-json 4.29.1 ✓ 11661.0 85.20 134.16
micro-route 2.5.0 ✓ N/A N/A N/A
micro 10.0.2 ✗ N/A N/A N/A
microrouter 3.1.3 ✓ N/A N/A N/A
trpc-router 10.45.4 ✓ N/A N/A N/A

About

Fastify benchmarks with Kita

Resources

Code of conduct

Security policy

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages