Which is the fastest web framework?
From established full-stack platforms to small HTTP routers, this repository puts hundreds of implementations behind the same tiny API and runs them in isolated containers. Today, it makes a focused part of web-stack performance easier to measure, reproduce, and discuss. The longer-term goal is a comprehensive, evidence-based guide that helps businesses choose a backend framework—not merely a leaderboard that declares one universal winner.
[!IMPORTANT] These are minimal HTTP throughput and latency tests, not a substitute for profiling a production application. Framework features, maintainability, ecosystem, security, database access, and your real workload all matter.
Every implementation is expected to listen on port 3000 and provide the same responses:
| Method | Route | Expected status | Expected body |
|---|---|---|---|
GET |
/ |
2xx |
Empty |
GET |
/user/:id |
2xx |
The id path parameter |
POST |
/user |
2xx |
Empty |
Before an implementation is benchmarked, the shared RSpec contract verifies these routes. The default generated benchmark runs GET / for 15 seconds, disables keep-alive, applies latency correction, and records an oha JSON report. Concurrency and routes are configurable.
Collected fields include requests per second, total data received, run duration, and the p50, p75, p90, and p99 latency percentiles. Benchmark configuration is generated from three YAML layers:
config.yaml # provider and global settings
<language>/config.yaml # language image, runtime, and engine settings
<language>/<framework>/config.yaml
# framework version, files, command, and overridesThe latest published results are available on the Web Frameworks Benchmark dashboard. Each result should be read in the context of its framework version, runtime or server variant, concurrency, benchmark revision, and hardware.
For a fair interpretation:
The project is evolving from a focused HTTP performance benchmark into a broader decision-support guide for organizations choosing a backend framework. The intended presentation is inspired by the clarity of quadrant-based market analysis, but the evaluation model will be designed specifically for backend frameworks and backed by transparent, reproducible evidence. This project is independent and is not affiliated with or endorsed by Gartner.
zrk on PATHjqInstall the Ruby dependencies and generate the Dockerfiles and Makefiles:
git clone https://github.com/the-benchmarker/web-frameworks.git
cd web-frameworks
bundle install
bundle exec rake configThen choose an implementation—for example, javascript/fastify—and use its generated Makefile:
make -f javascript/fastify/.Makefile build
make -f javascript/fastify/.Makefile test
make -f javascript/fastify/.Makefile warmup
mkdir -p javascript/fastify/.results/10
make -f javascript/fastify/.Makefile collect
make -f javascript/fastify/.Makefile unbuildResults are written beneath <language>/<framework>/.results/. Generated targets also include clean for removing the framework container.
The generator accepts comma-separated concurrency levels and routes. Set them while generating the Makefiles:
CONCURRENCIES=64,256,512 \
ROUTES='GET:/,GET:/user/42,POST:/user' \
bundle exec rake configThen run the same collect target. Route entries use the METHOD:/path form.
Create a matching .results/<concurrency> directory for every configured concurrency level before collecting results; the batch runner does this automatically for its predefined levels.
[!CAUTION] A full benchmark consumes substantial CPU, memory, time, network bandwidth, and container storage. Start with one implementation and keep the load generator separate from services you care about.
Contributions are welcome: new frameworks and variants, dependency updates, correctness fixes, documentation, and benchmarking improvements all help.
A typical implementation lives in <language>/<framework>/ and contains:
config.yaml describing its version, website, files, startup command, and engine variants;To validate a contribution:
bundle exec rake config
make -f <language>/<framework>/.Makefile build
make -f <language>/<framework>/.Makefile test
make -f <language>/<framework>/.Makefile unbuildRead CONTRIBUTING.md before opening a pull request, and follow the Code of Conduct. If you maintain the framework you are adding, mention that in the PR—it helps reviewers evaluate idiomatic configuration and tuning.
| Path | Purpose |
|---|---|
<language>/<framework>/ |
Framework implementation and configuration |
.spec/ |
Shared HTTP correctness contract |
.tasks/ |
Configuration, CI, collection, cloud, and database tasks |
.github/workflows/ci.yml |
Changed-implementation CI matrix |
config.yaml |
Global providers and execution templates |
data.json / data.min.json |
Published benchmark dataset |
run.sh |
Batch runner for all, one language, or one framework |
Sponsors help cover benchmark infrastructure, repeated test runs, result hosting, and the maintenance involved in keeping hundreds of implementations current.
To sponsor hardware, cloud credits, hosting, or ongoing development, start a sponsorship discussion. Sponsor names and links can be added here with the sponsor's approval; support never affects benchmark rankings or inclusion decisions.
Please include the framework path, runtime variant, host architecture, Docker version, commands used, and relevant logs when reporting a benchmark problem.
This project is available under the MIT License.
Optional maintainers field in config.yaml, to notify framework authors
Dependency Dashboard
Roadmap
Why is disabled Keep-alive ???
Update gleam to latest version
Update phalcon to 5.20.1
Are we testing real-world frameworks?
[Crystal] Process fork is unsupported with multithreaded mode
Problem with the links in results page
vanilla_io_uring fails CI: io_uring is blocked by Docker's default seccomp on GitHub Actions