Closed mrLSD closed 7 years ago
Did you disable logging? You should run Rocket under the prod environment: ROCKET_ENV=prod
.
I tested again with prod environment
and have got excellent results:
Rocket Hello:
[Ab Benchmark results]
Failed Requests: 0.00
Requests Per Second: 13480.71
Time Per Request: 37.33 ms
Time Per Request [avg]: 0.07 ms
Transfer Rate: 2172.18 Kbytes
[Wrk Benchmark results]
Latency Stats Avg: 35.83 us
Latency Stats Stdev: 44.36 us
Latency Stats Max: 11.14 ms
Req/Sec Stats Avg: 106.05 k
Req/Sec Stats Stdev: 6.41 k
Req/Sec Stats Max: 111.47 k
Latency Distribution
[99%]: 72.20 us
Requests/sec: 109628.09
Requests: 1107530.40
Failed Requests: 0.00
[Siege Benchmark results]
Transactions: 126736.80
Availability: 99.16%
Transaction Rate: 20891.67
Concurrency: 82.28
Longest Transaction: 0.41
Rust version: current nightly Rocket: current OS: Ubuntu 16.04 App: Rocket hello example. Build: cargo build --release
I tested performance with benchmark tool: https://github.com/mrLSD/go-benchmark-app
Config:
Results:
Rocket was significantly slow. Is it problem from my environment or known issue?