https://github.com/simoncw/rust-tokio-playground
Exploring async programming with the tokio crate
https://github.com/simoncw/rust-tokio-playground
Last synced: 12 months ago
JSON representation
Exploring async programming with the tokio crate
- Host: GitHub
- URL: https://github.com/simoncw/rust-tokio-playground
- Owner: SimonCW
- Created: 2022-12-29T13:32:07.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-22T07:57:39.000Z (almost 2 years ago)
- Last Synced: 2025-01-25T07:25:34.315Z (over 1 year ago)
- Language: Rust
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Exploring async programming with tokio, axum, ...
Testing the axum server:
```bash
cargo run --bin axum-server
# in new shell
# test availability
curl http://127.0.0.1:3000/user/1
curl http://127.0.0.1:3000/user_optimized/1
# benchmark
ab -n 1000 -c 10 http://127.0.0.1:3000/user/1
ab -n 1000 -c 10 http://127.0.0.1:3000/user_optimized/1
```