
GitHub:https://github.com/cube-js/cube.js
========== Rust (tide) oha ==========
Success rate: 1.0000
Total: 52.4111 secs
Slowest: 7.2684 secs
Fastest: 0.0005 secs
Average: 0.0518 secs
Requests/sec: 19079.9386
Total data: 94.70 GiB
Size/request: 99.30 KiB
Size/sec: 1.81 GiB
Response time histogram:
0.014 [790046] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.028 [147431] |■■■■■
0.042 [18943] |
0.056 [3856] |
0.070 [1394] |
0.085 [391] |
0.099 [165] |
0.113 [46] |
0.127 [1] |
0.141 [0] |
0.155 [37727] |■
Latency distribution:
10% in 0.0035 secs
25% in 0.0055 secs
50% in 0.0086 secs
75% in 0.0133 secs
90% in 0.0212 secs
95% in 0.0350 secs
99% in 1.0409 secs
========== Rust (actix-web) oha ==========
Success rate: 1.0000
Total: 78.6992 secs
Slowest: 15.3911 secs
Fastest: 0.0003 secs
Average: 0.0767 secs
Requests/sec: 12706.6082
Total data: 99.35 GiB
Size/request: 104.18 KiB
Size/sec: 1.26 GiB
Response time histogram:
0.021 [571453] |■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
0.042 [144019] |■■■■■■■■
0.063 [106616] |■■■■■
0.084 [53172] |■■
0.104 [22118] |■
0.125 [14140] |
0.146 [10648] |
0.167 [6473] |
0.188 [5518] |
0.209 [2872] |
0.230 [62971] |■■■
Latency distribution:
10% in 0.0021 secs
25% in 0.0052 secs
50% in 0.0145 secs
75% in 0.0484 secs
90% in 0.1082 secs
95% in 0.3382 secs
99% in 1.0657 secs
========== Rust (tide) wrk ==========
Thread Stats Avg Stdev Max +/- Stdev
Latency 44.52ms 35.65ms 324.00ms 67.55%
Req/Sec 4.00k 613.36 10.05k 70.29%
716042 requests in 30.09s, 67.90GB read
Requests/sec: 23794.67
Transfer/sec: 2.26GB
========== Rust (actix-web) wrk ==========
Thread Stats Avg Stdev Max +/- Stdev
Latency 50.33ms 7.94ms 118.28ms 69.65%
Req/Sec 3.26k 221.62 3.74k 71.50%
583704 requests in 30.07s, 58.05GB read
Requests/sec: 19410.66
Transfer/sec: 1.93GB
use thread_priority::*;
fn main() {
assert!(set_current_thread_priority(ThreadPriority::Min).is_ok());
}

cargo run --release
From 日报小组 长琴
原文作者:Rust语言中文社区;如有侵权,请联系管理员删除。