Web api benchmarking: Python (Falcon) vs Rust (Warp)

preview_player
Показать описание
#rustlang #benchmarking

========== Python (Falcon) Apache Bench ==========
Time taken for tests: 20.133 seconds
Complete requests: 100000
Failed requests: 0
Requests per second: 4967.09 [#/sec] (mean)
Time per request: 201.325 [ms] (mean)
Transfer rate: 556896.06 [Kbytes/sec] received

Percentage of the requests served within a certain time (ms)
50% 178
66% 235
75% 266
80% 290
90% 348
95% 397
98% 475
99% 536
100% 647 (longest request)

========== Rust (Warp) Apache Bench ==========
Time taken for tests: 7.068 seconds
Complete requests: 100000
Failed requests: 0
Requests per second: 14149.12 [#/sec] (mean)
Time per request: 70.676 [ms] (mean)
Transfer rate: 1406511.43 [Kbytes/sec] received

Percentage of the requests served within a certain time (ms)
50% 70
66% 73
75% 75
80% 75
90% 76
95% 77
98% 78
99% 79
100% 1096 (longest request)

========== Python (Falcon) wrk ==========
Thread Stats Avg Stdev Max +/- Stdev
Latency 188.62ms 61.29ms 548.86ms 68.65%
Req/Sec 0.88k 202.06 1.78k 67.59%
316547 requests in 1.00m, 33.85GB read
Requests/sec: 5267.96
Transfer/sec: 576.79MB

========== Rust (Warp) wrk ==========
Thread Stats Avg Stdev Max +/- Stdev
Latency 53.20ms 38.74ms 287.05ms 73.11%
Req/Sec 3.40k 228.49 4.35k 69.19%
1218142 requests in 1.00m, 115.48GB read
Requests/sec: 20276.57
Transfer/sec: 1.92GB
Рекомендации по теме
Комментарии
Автор

I keep on seeing unusually long "longest request" @ 100% as a multiple of the 99%, for Rust servers. There's another video where a different Rust server gives similar, with something like 3300+ms longest request. Is it the first request?.. it just piqued my curiosity. I suspect there's a reason for that longest request.

CarnaghSidhe
visit shbcf.ru