https://github.com/routerify/routerify-benchmark
A simple benchmarking between other web frameworks and router implementation libraries
https://github.com/routerify/routerify-benchmark
benchmark routerfy rust
Last synced: 3 months ago
JSON representation
A simple benchmarking between other web frameworks and router implementation libraries
- Host: GitHub
- URL: https://github.com/routerify/routerify-benchmark
- Owner: routerify
- License: mit
- Created: 2020-05-03T16:46:40.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-03T13:27:34.000Z (over 4 years ago)
- Last Synced: 2025-01-27T13:19:42.428Z (5 months ago)
- Topics: benchmark, routerfy, rust
- Language: Rust
- Homepage:
- Size: 23.4 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# routerify-benchmark
A simple benchmarking between other web frameworks and router implementation libraries.
## Benchmarking Tool
I used [wrk](https://github.com/wg/wrk) to test these http servers:
```sh
$ wrk --latency -t4 -c200 -d8s http://127.0.0.1:8081
```## System
I ran all those tests on:
```txt
MacBook Pro, 2.2 GHz Intel Core i7 processor with 4 cores, 16GB of RAM
```## Comparisons
| Framework | Language | Requests/sec |
|----------------|-------------|--------------|
| [hyper v0.14](https://github.com/hyperium/hyper) | Rust 1.50.0 | 144,583 |
| [routerify v2.0.0-beta-4](https://github.com/routerify/routerify) with [hyper v0.14](https://github.com/hyperium/hyper) | Rust 1.50.0 | 144,621 |
| [actix-web v3](https://github.com/actix/actix-web) | Rust 1.50.0 | 131,292 |
| [warp v0.3](https://github.com/seanmonstar/warp) | Rust 1.50.0 | 145,362 |
| [go-httprouter, branch master](https://github.com/julienschmidt/httprouter) | Go 1.16 | 130,662 |
| [Rocket, branch master](https://github.com/SergioBenitez/Rocket) | Rust 1.50.0 | 130,045 |## Contributing
Your PRs and suggestions are always welcome.