GithubHelp home page GithubHelp logo

ls-v / benchmarks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fastify/benchmarks

0.0 0.0 0.0 493 KB

Fast and low overhead web framework fastify benchmarks.

Home Page: https://github.com/fastify/fastify

License: MIT License

JavaScript 100.00%

benchmarks's Introduction

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

Installing

npm i -g fastify-benchmarks

Usage

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 | 2 vCPUs | 6.8GB Mem
  • Node: v18.16.0
  • Run: Mon Jun 05 2023 01:56:17 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 10.13.0 46618.4 20.99 8.31
fastify 4.17.0 44367.2 22.08 7.95
polka 0.5.2 44202.4 22.16 7.88
yeps 1.1.1 42358.4 23.17 7.55
server-base 7.1.32 41983.2 23.36 7.49
connect 3.7.0 41774.4 23.48 7.45
connect-router 1.3.8 40812.8 24.03 7.28
server-base-router 7.1.32 40727.2 24.09 7.26
restana 4.9.7 39808.6 24.66 7.10
vapr 0.6.0 38134.4 25.78 6.26
spirit 0.6.1 37886.6 25.93 6.76
spirit-router 0.5.0 36936.2 26.63 6.59
koa 2.14.2 35356.8 27.82 6.31
yeps-router 1.2.0 34116.6 28.85 6.08
polkadot 1.0.0 33989.6 28.98 6.06
h3 1.6.6 33617.6 29.29 5.51
take-five 2.0.0 33575.6 29.36 12.07
koa-isomorphic-router 1.0.1 33082.9 29.74 5.90
0http 3.5.2 32660.0 30.17 5.82
restify 11.1.0 32598.6 30.21 5.88
h3-router 1.6.6 32167.4 30.61 5.28
koa-router 12.0.0 30685.2 32.11 5.47
hapi 21.3.2 29628.0 33.31 5.28
fastify-big-json 4.17.0 9889.0 100.72 113.77
express 4.18.2 9679.5 102.79 1.73
express-with-middlewares 4.18.2 8737.5 113.84 3.25
foxify 0.10.20 N/A N/A N/A
galatajs 0.1.1 N/A N/A N/A
micro-route 2.5.0 N/A N/A N/A
micro 10.0.1 N/A N/A N/A
microrouter 3.1.3 N/A N/A N/A
total.js 3.4.13 N/A N/A N/A
trpc-router 10.29.1 N/A N/A N/A

benchmarks's People

Contributors

dependabot[bot] avatar rafaelgss avatar cagataycali avatar aichholzer avatar mcollina avatar github-actions[bot] avatar jameskyburz avatar eomm avatar fdawgs avatar dougwilson avatar giacomorebonato avatar jkyberneees avatar 3imed-jaberi avatar salesh avatar 9ssi7 avatar pi0 avatar hekike avatar lukeed avatar aboutlo avatar sinchang avatar hueniverse avatar ardalanamini avatar mannil avatar mudrz avatar hnry avatar leizongmin avatar dotcypress avatar zekth avatar delvedor avatar mhajder avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.