{"id":13473729,"url":"https://github.com/fastify/benchmarks","last_synced_at":"2025-05-14T16:01:39.463Z","repository":{"id":38050157,"uuid":"102914328","full_name":"fastify/benchmarks","owner":"fastify","description":"Fast and low overhead web framework fastify benchmarks","archived":false,"fork":false,"pushed_at":"2025-05-05T08:52:51.000Z","size":742,"stargazers_count":613,"open_issues_count":3,"forks_count":235,"subscribers_count":17,"default_branch":"main","last_synced_at":"2025-05-05T09:35:41.635Z","etag":null,"topics":["fastest","fastify","framework","nodejs","web"],"latest_commit_sha":null,"homepage":"https://github.com/fastify/fastify","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fastify.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"fastify","open_collective":"fastify"}},"created_at":"2017-09-09T00:12:53.000Z","updated_at":"2025-05-05T08:52:55.000Z","dependencies_parsed_at":"2025-04-12T01:55:56.973Z","dependency_job_id":"ec02332f-e27a-4142-9cf6-bc7e4dd670f8","html_url":"https://github.com/fastify/benchmarks","commit_stats":{"total_commits":539,"total_committers":54,"mean_commits":9.981481481481481,"dds":"0.47866419294990725","last_synced_commit":"5f873378d70beefe35183591ddb27a83330b1b67"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Fbenchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Fbenchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Fbenchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fastify%2Fbenchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fastify","download_url":"https://codeload.github.com/fastify/benchmarks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254179897,"owners_count":22027883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastest","fastify","framework","nodejs","web"],"created_at":"2024-07-31T16:01:06.283Z","updated_at":"2025-05-14T16:01:39.428Z","avatar_url":"https://github.com/fastify.png","language":"JavaScript","readme":"\u003cdiv align=\"center\"\u003e \u003ca href=\"https://fastify.dev/\"\u003e\n    \u003cimg\n      src=\"https://github.com/fastify/graphics/raw/HEAD/fastify-landscape-outlined.svg\"\n      width=\"650\"\n      height=\"auto\"\n    /\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![CI](https://github.com/fastify/fastify/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fastify/fastify/actions/workflows/ci.yml)\n[![Package Manager\nCI](https://github.com/fastify/fastify/actions/workflows/package-manager-ci.yml/badge.svg?branch=main)](https://github.com/fastify/fastify/actions/workflows/package-manager-ci.yml)\n[![Web\nsite](https://github.com/fastify/fastify/actions/workflows/website.yml/badge.svg?branch=main)](https://github.com/fastify/fastify/actions/workflows/website.yml)\n[![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-brightgreen?style=flat)](https://github.com/neostandard/neostandard)\n[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/7585/badge)](https://bestpractices.coreinfrastructure.org/projects/7585)\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM\nversion](https://img.shields.io/npm/v/fastify.svg?style=flat)](https://www.npmjs.com/package/fastify)\n[![NPM\ndownloads](https://img.shields.io/npm/dm/fastify.svg?style=flat)](https://www.npmjs.com/package/fastify)\n[![Security Responsible\nDisclosure](https://img.shields.io/badge/Security-Responsible%20Disclosure-yellow.svg)](https://github.com/fastify/fastify/blob/main/SECURITY.md)\n[![Discord](https://img.shields.io/discord/725613461949906985)](https://discord.gg/fastify)\n[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod\u0026color=blue)](https://gitpod.io/#https://github.com/fastify/fastify)\n![Open Collective backers and sponsors](https://img.shields.io/opencollective/all/fastify)\n\n\u003c/div\u003e\n\n\u003cbr /\u003e\n\n# TL;DR\n\n* [Fastify](https://github.com/fastify/fastify) is a fast and low overhead web framework for Node.js.\n* 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**.\n* 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.\n* For metrics (cold-start) see [metrics.md](./METRICS.md)\n\n# Requirements\n\nTo be included in this list, the framework should captivate users' interest. We have identified the following minimal requirements:\n- **Ensure active usage**: a minimum of 500 downloads per week\n- **Maintain an active repository** with at least one event (comment, issue, PR) in the last month\n- The framework must use the **Node.js** HTTP module\n\n# Usage\n\nClone this repo. Then\n\n```\nnode ./benchmark [arguments (optional)]\n```\n\n#### Arguments\n\n* `-h`: Help on how to use the tool.\n* `bench`:  Benchmark one or more modules.\n* `compare`: Get comparative data for your benchmarks.\n\n\u003e Create benchmark before comparing; `benchmark bench`\n\n\u003e You may also compare all test results, at once, in a single table; `benchmark compare -t`\n\n\u003e You can also extend the comparison table with percentage values based on fastest result; `benchmark compare -p`\n# Benchmarks\n\n* __Machine:__ linux x64 | 4 vCPUs | 15.6GB Mem\n* __Node:__ `v20.19.1`\n* __Run:__ Thu May 08 2025 17:22:36 GMT+0000 (Coordinated Universal Time)\n* __Method:__ `autocannon -c 100 -d 40 -p 10 localhost:3000` (two rounds; one to warm-up, one to measure)\n\n|                          | Version  | Router | Requests/s | Latency (ms) | Throughput/Mb |\n| :--                      | --:      | --:    | :-:        | --:          | --:           |\n| node-http                | v20.19.1 | ✗      | 47770.4    | 20.46        | 8.52          |\n| polka                    | 0.5.2    | ✓      | 47529.6    | 20.52        | 8.48          |\n| rayo                     | 1.4.6    | ✓      | 46485.6    | 21.01        | 8.29          |\n| polkadot                 | 1.0.0    | ✗      | 46413.6    | 21.05        | 8.28          |\n| server-base-router       | 7.1.32   | ✓      | 46048.0    | 21.20        | 8.21          |\n| server-base              | 7.1.32   | ✗      | 45766.4    | 21.34        | 8.16          |\n| fastify                  | 5.3.2    | ✓      | 45656.8    | 21.40        | 8.19          |\n| connect                  | 3.7.0    | ✗      | 45392.0    | 21.53        | 8.09          |\n| micro                    | 10.0.1   | ✗      | 44385.6    | 22.02        | 7.92          |\n| h3                       | 1.15.3   | ✗      | 43540.0    | 22.47        | 7.77          |\n| 0http                    | 4.2.0    | ✓      | 42765.6    | 22.89        | 7.63          |\n| micro-route              | 2.5.0    | ✓      | 42576.8    | 22.97        | 7.59          |\n| connect-router           | 2.2.0    | ✓      | 41602.4    | 23.54        | 7.42          |\n| h3-router                | 1.15.3   | ✓      | 41300.8    | 23.72        | 7.37          |\n| adonisjs                 | 7.6.0    | ✓      | 41134.4    | 23.81        | 7.34          |\n| hono                     | 4.7.8    | ✓      | 40757.6    | 24.04        | 6.69          |\n| restana                  | v5.0.0   | ✓      | 39673.8    | 24.71        | 7.08          |\n| koa                      | 2.16.1   | ✗      | 37520.8    | 26.18        | 6.69          |\n| take-five                | 2.0.0    | ✓      | 35226.2    | 27.88        | 12.67         |\n| restify                  | 11.1.0   | ✓      | 35189.4    | 27.92        | 6.34          |\n| koa-isomorphic-router    | 1.0.1    | ✓      | 34661.0    | 28.34        | 6.18          |\n| koa-router               | 13.1.0   | ✓      | 32678.2    | 30.09        | 5.83          |\n| hapi                     | 21.4.0   | ✓      | 32200.2    | 30.55        | 5.74          |\n| microrouter              | 3.1.3    | ✓      | 30210.8    | 32.60        | 5.39          |\n| fastify-big-json         | 5.3.2    | ✓      | 11660.0    | 85.19        | 134.14        |\n| express                  | 5.1.0    | ✓      | 9812.4     | 101.30       | 1.75          |\n| express-with-middlewares | 5.1.0    | ✓      | 8761.5     | 113.46       | 3.26          |\n| trpc-router              | 11.1.2   | ✓      | 5826.7     | 170.83       | 1.28          |\n","funding_links":["https://github.com/sponsors/fastify","https://opencollective.com/fastify"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastify%2Fbenchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffastify%2Fbenchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffastify%2Fbenchmarks/lists"}