Skip to content
프로젝트

소개

빠르고 오버헤드가 적은 웹 프레임워크 Fastify의 벤치마크입니다.

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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

관련 프로젝트 살펴보기

불러오는 중…