Skip to content
プロジェクト

概要

高速かつ低オーバーヘッドなWebフレームワーク、Fastifyのベンチマークです。

Web・アプリ開発

この数値の測り方

計測したスター増加

24時間
0
7日間
0
15日間
0
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

CI Package Manager
CI Web
site neostandard javascript style CII Best Practices

NPM
version NPM
downloads Security Responsible
Disclosure Discord Contribute with Gitpod Open Collective backers and sponsors


TL;DR

  • Fastify is a fast and low overhead web framework for Node.js.
  • This package shows how fast it is compared to other JS frameworks: these benchmarks do not pretend to represent a real-world scenario, but they give a good indication of the framework overhead.
  • The benchmarks are run automatically on GitHub actions, which means they run on virtual hardware that can suffer from the "noisy neighbor" effect; this means that the results can vary.
  • 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.
  • bench: Benchmark one or more modules.
  • compare: Get comparative data for your benchmarks.

Create benchmark before comparing; benchmark bench

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

Scenarios

  • get (default): GET / responding with { hello: 'world' }. Servers live in benchmarks/.
  • post: POST / with a {"hello":"world"} JSON body, parsed and echoed back. Servers live in benchmarks/post/.

Pass the scenario as the fifth argument when benchmarking non-interactively, and with -s when comparing:

node ./benchmark bench y 100 10 40 post
node ./benchmark compare -t -s post

Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v24.23.0
  • Run: Tue Dec 01 2026 14:24:13 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
0http 5.2.0 ✓ 121992.0 7.62 21.75
restana 6.1.0 ✓ 114584.0 8.27 20.44
node-http v24.23.0 ✗ 106425.6 8.84 18.98
connect 3.7.0 ✗ 103984.0 9.12 18.54
polka 0.5.2 ✓ 103942.4 9.15 18.54
micro 10.0.2 ✗ 97486.4 9.75 17.39
fastify 5.12.8 ✓ 96900.8 9.81 17.37
connect-router 2.3.0 ✓ 93408.0 10.20 16.66
hono 4.13.21 ✓ 89593.6 10.61 14.70
srvx 1.0.8 ✗ 85084.8 11.26 13.79
adonisjs 9.3.2 ✓ 83864.0 11.47 14.96
elysia 1.4.32 ✓ 82499.2 11.60 13.53
h3 2.0.8 ✓ 80960.0 11.81 14.21
koa 3.3.0 ✗ 70337.6 13.72 12.54
koa-router 15.7.1 ✓ 66073.6 14.65 11.78
restify 12.1.0 ✓ 62207.2 15.59 11.21
express 5.3.0 ✓ 61369.6 15.79 10.94
hapi 21.4.13 ✓ 55572.8 17.48 9.91
microrouter 3.1.3 ✓ 54601.6 17.80 9.74
express-with-middlewares 5.3.0 ✓ 48734.4 20.02 18.13
fastify-big-json 5.12.8 ✓ 16851.7 58.81 193.89
trpc-router 11.31.2 ✓ 14984.7 66.20 3.42
whatwg-node-server 0.13.3 ✗ N/A N/A N/A

POST Benchmarks

  • Machine: linux x64 | 4 vCPUs | 15.6GB Mem
  • Node: v24.23.0
  • Run: Tue Dec 01 2026 14:24:14 GMT+0000 (Coordinated Universal Time)
  • Method: autocannon -c 100 -d 40 -p 10 -m POST -H content-type=application/json -b '{"hello":"world"}' localhost:3000 (two rounds; one to warm-up, one to measure)
Version Router Requests/s Latency (ms) Throughput/Mb
node-http v24.23.0 ✗ 77621.2 12.40 13.84
fastify 5.12.8 ✓ 60767.2 15.97 10.89
hono 4.13.21 ✓ 55780.8 17.40 9.15
h3 2.0.8 ✓ 46950.4 20.80 8.24
koa 3.3.0 ✗ 40178.4 24.40 7.17
restify 12.1.0 ✓ 35770.0 27.45 6.45
express 5.3.0 ✓ 32614.8 30.15 5.82
hapi 21.4.13 ✓ 27235.2 36.21 4.86

関連プロジェクトを探す

読み込み中…