Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fastify benchmarks with Kita

License

NotificationsYou must be signed in to change notification settings

kitajs/benchmarks

 
 

Repository files navigation

CICoverage Statusjs-standard-styleNPM versionNPM downloadsDiscord


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) seemetrics.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 theNode.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.19.0
  • Run: Mon Apr 28 2025 01:35:15 GMT+0000 (Coordinated Universal Time)
  • Method:autocannon -c 100 -d 40 -p 10 localhost:3000 (two rounds; one to warm-up, one to measure)
VersionRouterRequests/sLatency (ms)Throughput/Mb
polka0.5.246916.820.828.37
barev20.19.046806.420.868.35
kita1.1.3646433.621.038.33
rayo1.4.646003.221.238.20
connect3.7.045924.221.268.19
fastify4.29.045467.221.498.15
0http3.5.345151.221.658.05
polkadot1.0.044868.021.798.00
server-base7.1.3244837.621.828.00
server-base-router7.1.3244780.821.867.99
connect-router1.3.843220.822.637.71
h3-router1.15.243087.222.717.68
h31.15.242297.623.147.54
restana4.9.940536.024.187.23
hono4.7.739636.824.736.50
koa2.16.136759.026.706.56
restify11.1.035095.028.006.33
take-five2.0.034983.028.0912.58
koa-isomorphic-router1.0.134370.628.586.13
koa-router12.0.132581.630.195.81
hapi21.4.031855.030.895.68
fastify-big-json4.29.011623.685.47133.74
express4.21.210842.691.591.93
express-with-middlewares4.21.210074.498.633.75
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

About

Fastify benchmarks with Kita

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages

  • JavaScript99.8%
  • TypeScript0.2%

[8]ページ先頭

©2009-2025 Movatter.jp