Home

Awesome

<div align="center"> <img src="https://github.com/fastify/graphics/raw/HEAD/fastify-landscape-outlined.svg" width="650" height="auto"/> </div> <div align="center">

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

</div> <br />

TL;DR

Requirements

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

Usage

Clone this repo. Then

node ./benchmark [arguments (optional)]

Arguments

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

VersionRouterRequests/sLatency (ms)Throughput/Mb
fastify4.28.145611.221.428.18
barev20.16.045284.021.588.08
connect3.7.044369.622.057.91
polka0.5.244249.622.107.89
rayo1.4.643551.222.467.77
polkadot1.0.042456.023.067.57
server-base7.1.3242344.023.127.55
server-base-router7.1.3242312.823.137.55
0http3.5.342198.423.207.53
connect-router1.3.842102.423.267.51
hono4.5.539421.624.867.03
h3-router1.12.038437.625.526.85
h31.12.038254.425.646.82
koa2.15.336319.027.026.48
restana4.9.934681.028.336.19
koa-isomorphic-router1.0.134142.228.796.09
koa-router12.0.133901.428.996.05
take-five2.0.033382.829.4512.00
restify11.1.032718.830.065.90
hapi21.3.1030417.632.375.42
fastify-big-json4.28.111701.284.89134.64
express4.19.210819.291.851.93
express-with-middlewares4.19.29939.0100.033.70
micro-route2.5.0N/AN/AN/A
micro10.0.1N/AN/AN/A
microrouter3.1.3N/AN/AN/A
trpc-router10.45.2N/AN/AN/A