Described in this repository: Flaiers/the-rust
git clone [email protected]:Flaiers/rust-tests.git
git clone [email protected]:wg/wrk.git ; \
cd wrk ; \
make -j 4 ; \
sudo cp wrk /usr/bin/
wrk -c200 -t4 -d120s https://127.0.0.1:8000
I run:
cargo run
Result:
Running 2m test @ https://127.0.0.1:8000
4 threads and 200 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 7.78ms 2.71ms 74.73ms 93.75%
Req/Sec 6.57k 736.59 7.39k 90.85%
3139974 requests in 2.00m, 263.52MB read
Requests/sec: 26161.21
Transfer/sec: 2.20MB
I run:
cargo run --release
Result:
Running 2m test @ https://127.0.0.1:8000
4 threads and 200 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 3.27ms 2.28ms 53.43ms 81.90%
Req/Sec 16.05k 2.06k 43.41k 78.70%
7666411 requests in 2.00m, 1.77GB read
Requests/sec: 63835.70
Transfer/sec: 15.10MB