关闭keep-alive
2025年2月19日大约 3 分钟hyperlanewebrust
QPS 测试结果
提示
测试 1000
并发,一共 100w
请求。QPS
结果如下:
- 1.Hyperlane 框架:52217.63
- 2.Tokio:50930.99
- 3.Rocket 框架:49621.02
- 4.Go 标准库:47915.20
- 5.Gin 框架:47081.05
- 6.Node 标准库:44763.11
- 7.Rust 标准库:31511.00
压测命令
ab -n 10000000 -c 1000 -r http://127.0.0.1:60000/
hyperlane 框架
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 5 bytes
Concurrency Level: 1000
Time taken for tests: 19.151 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 107000000 bytes
HTML transferred: 5000000 bytes
Requests per second: 52217.63 [#/sec] (mean)
Time per request: 19.151 [ms] (mean)
Time per request: 0.019 [ms] (mean, across all concurrent requests)
Transfer rate: 5456.33 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 8.8 8 1065
Processing: 0 10 4.8 10 273
Waiting: 0 9 4.6 9 272
Total: 1 19 10.8 18 1078
Percentage of the requests served within a certain time (ms)
50% 18
66% 21
75% 23
80% 25
90% 29
95% 32
98% 37
99% 40
100% 1078 (longest request)
Rust 标准库
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 5 bytes
Concurrency Level: 1000
Time taken for tests: 31.735 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 88000000 bytes
HTML transferred: 5000000 bytes
Requests per second: 31511.00 [#/sec] (mean)
Time per request: 31.735 [ms] (mean)
Time per request: 0.032 [ms] (mean, across all concurrent requests)
Transfer rate: 2707.98 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 22 167.7 0 7232
Processing: 0 9 45.2 4 5771
Waiting: 0 9 45.2 4 5771
Total: 0 31 178.6 4 7441
Percentage of the requests served within a certain time (ms)
50% 4
66% 5
75% 5
80% 6
90% 7
95% 8
98% 426
99% 1050
100% 7441 (longest request)
Tokio 框架
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 5 bytes
Concurrency Level: 1000
Time taken for tests: 19.634 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 88000000 bytes
HTML transferred: 5000000 bytes
Requests per second: 50930.99 [#/sec] (mean)
Time per request: 19.634 [ms] (mean)
Time per request: 0.020 [ms] (mean, across all concurrent requests)
Transfer rate: 4376.88 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 17.3 8 1083
Processing: 0 10 6.1 10 278
Waiting: 0 9 6.0 9 276
Total: 1 20 18.8 18 1092
Percentage of the requests served within a certain time (ms)
50% 18
66% 21
75% 24
80% 25
90% 29
95% 33
98% 38
99% 42
100% 1092 (longest request)
Rocket 框架
Server Software: Rocket
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 13 bytes
Concurrency Level: 1000
Time taken for tests: 20.153 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 247000000 bytes
HTML transferred: 13000000 bytes
Requests per second: 49621.02 [#/sec] (mean)
Time per request: 20.153 [ms] (mean)
Time per request: 0.020 [ms] (mean, across all concurrent requests)
Transfer rate: 11969.13 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 11.2 9 1094
Processing: 0 11 5.4 10 305
Waiting: 0 10 5.2 9 305
Total: 0 20 13.3 19 1107
Percentage of the requests served within a certain time (ms)
50% 19
66% 22
75% 25
80% 26
90% 30
95% 34
98% 39
99% 43
100% 1107 (longest request)
Gin 框架
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 5 bytes
Concurrency Level: 1000
Time taken for tests: 21.240 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 140000000 bytes
HTML transferred: 5000000 bytes
Requests per second: 47081.05 [#/sec] (mean)
Time per request: 21.240 [ms] (mean)
Time per request: 0.021 [ms] (mean, across all concurrent requests)
Transfer rate: 6436.86 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 10 13.0 9 1095
Processing: 0 12 6.0 11 288
Waiting: 0 11 5.8 10 286
Total: 1 21 15.1 20 1114
Percentage of the requests served within a certain time (ms)
50% 20
66% 23
75% 26
80% 27
90% 32
95% 35
98% 40
99% 44
100% 1114 (longest request)
Go 标准库
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 13 bytes
Concurrency Level: 1000
Time taken for tests: 20.870 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 149000000 bytes
HTML transferred: 13000000 bytes
Requests per second: 47915.20 [#/sec] (mean)
Time per request: 20.870 [ms] (mean)
Time per request: 0.021 [ms] (mean, across all concurrent requests)
Transfer rate: 6972.04 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 9 21.1 8 1103
Processing: 0 11 6.5 11 323
Waiting: 0 10 6.3 10 322
Total: 1 21 22.6 19 1120
Percentage of the requests served within a certain time (ms)
50% 19
66% 23
75% 25
80% 27
90% 31
95% 35
98% 41
99% 46
100% 1120 (longest request)
Node 标准库
Server Hostname: 127.0.0.1
Server Port: 60000
Document Path: /
Document Length: 13 bytes
Concurrency Level: 1000
Time taken for tests: 22.340 seconds
Complete requests: 1000000
Failed requests: 0
Total transferred: 114000000 bytes
HTML transferred: 13000000 bytes
Requests per second: 44763.11 [#/sec] (mean)
Time per request: 22.340 [ms] (mean)
Time per request: 0.022 [ms] (mean, across all concurrent requests)
Transfer rate: 4983.39 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 6 42.1 4 1086
Processing: 0 16 11.7 15 453
Waiting: 0 13 11.2 12 452
Total: 1 22 43.7 20 1108
Percentage of the requests served within a certain time (ms)
50% 20
66% 22
75% 23
80% 24
90% 27
95% 29
98% 33
99% 37
100% 1108 (longest request)