{"id":23278626,"url":"https://github.com/malkiii/fastapi-fastify-hono-benchmark","last_synced_at":"2026-04-10T02:03:06.948Z","repository":{"id":268899350,"uuid":"905798849","full_name":"malkiii/fastapi-fastify-hono-benchmark","owner":"malkiii","description":"Comparing the performance of the fastest three backend frameworks: FastAPI, Fastify, and Hono.js using AutoCannon for benchmarking tests to highlight their strengths and suitability for different types of workloads.","archived":false,"fork":false,"pushed_at":"2025-01-26T17:36:19.000Z","size":363,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T03:50:43.333Z","etag":null,"topics":["api","docker","fastapi","fastify","honojs","mongodb","nodejs","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/malkiii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"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}},"created_at":"2024-12-19T14:44:38.000Z","updated_at":"2025-05-22T11:42:08.000Z","dependencies_parsed_at":"2024-12-19T15:47:09.949Z","dependency_job_id":"ea31a1f0-4341-45f5-a8f7-41ff0da738da","html_url":"https://github.com/malkiii/fastapi-fastify-hono-benchmark","commit_stats":null,"previous_names":["malkiii/fastapi-fastify-hono-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/malkiii/fastapi-fastify-hono-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malkiii%2Ffastapi-fastify-hono-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malkiii%2Ffastapi-fastify-hono-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malkiii%2Ffastapi-fastify-hono-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malkiii%2Ffastapi-fastify-hono-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/malkiii","download_url":"https://codeload.github.com/malkiii/fastapi-fastify-hono-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/malkiii%2Ffastapi-fastify-hono-benchmark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265703162,"owners_count":23813938,"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":["api","docker","fastapi","fastify","honojs","mongodb","nodejs","python"],"created_at":"2024-12-19T22:32:41.364Z","updated_at":"2026-04-10T02:03:06.767Z","avatar_url":"https://github.com/malkiii.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FastAPI vs Fastify vs Hono.js\r\n\r\nThis is a benchmark test of these \"Fast\" backend frameworks to see which one can handle the most requests per second using [AutoCannon](https://github.com/mcollina/autocannon).\r\n\r\n## 📋 Requirements\r\n\r\n- Node.js v22.12.0 or above.\r\n- Python 3.13.0 or above and [Jupyter Notebook](https://jupyter.org/).\r\n- [Docker](https://www.docker.com/) CLI.\r\n\r\n## 💻 Local Setup\r\n\r\n1. Install Node.js dev-dependencies using\r\n\r\n   ```sh\r\n   npm install\r\n   ```\r\n\r\n2. Install Python `matplotlib` and `numpy` dependencies using:\r\n\r\n   ```sh\r\n   pip install matplotlib numpy\r\n   ```\r\n\r\n## 📊 Benchmarking\r\n\r\n1. Start `fastapi`, `fastify`, `hono`, and `mongodb` containers by opening a new terminal tab at the **root directory** and running:\r\n\r\n   ```sh\r\n   npm start\r\n   ```\r\n\r\n2. Check if everything is running correctly using:\r\n\r\n   ```sh\r\n   npm run test\r\n   ```\r\n\r\n3. Start benchmarking by running:\r\n\r\n   ```sh\r\n   npm run benchmark\r\n   ```\r\n\r\n\u003e [!NOTE]\r\n\u003e After completing these steps, you can check the results in the [report.ipynb](./report.ipynb) file. Your results may be completely different from mine.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalkiii%2Ffastapi-fastify-hono-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmalkiii%2Ffastapi-fastify-hono-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmalkiii%2Ffastapi-fastify-hono-benchmark/lists"}