This is a benchmark test of these "Fast" backend frameworks to see which one can handle the most requests per second using AutoCannon.
- Node.js v22.12.0 or above.
- Python 3.13.0 or above and Jupyter Notebook.
- Docker CLI.
-
Install Node.js dev-dependencies using
npm install
-
Install Python
matplotlibandnumpydependencies using:pip install matplotlib numpy
-
Start
fastapi,fastify,hono, andmongodbcontainers by opening a new terminal tab at the root directory and running:npm start
-
Check if everything is running correctly using:
npm run test -
Start benchmarking by running:
npm run benchmark
Note
After completing these steps, you can check the results in the report.ipynb file. Your results may be completely different from mine.