Hyperf Http协程体验记录

1
ab -n 1000 -c 1000 http://127.0.0.1:9501/order/list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software: Hyperf
Server Hostname: 127.0.0.1
Server Port: 9501

Document Path: /order/list
Document Length: 19202 bytes

Concurrency Level: 1000
Time taken for tests: 8.118 seconds
Complete requests: 1000
Failed requests: 768
(Connect: 0, Receive: 0, Length: 768, Exceptions: 0)
Total transferred: 4648120 bytes
HTML transferred: 4489424 bytes
Requests per second: 160.19 [#/sec] (mean)
Time per request: 8117.578 [ms] (mean)
Time per request: 8.118 [ms] (mean, across all concurrent requests)
Transfer rate: 559.18 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 16.1 0 511
Processing: 687 4345 1399.1 5053 5336
Waiting: 679 4342 1401.3 5052 5336
Total: 687 4345 1399.5 5053 5520

Percentage of the requests served within a certain time (ms)
50% 5053
66% 5065
75% 5077
80% 5139
90% 5274
95% 5300
98% 5318
99% 5324
100% 5520 (longest request)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
This is ApacheBench, Version 2.3 <$Revision: 1843412 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/

Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Completed 500 requests
Completed 600 requests
Completed 700 requests
Completed 800 requests
Completed 900 requests
Completed 1000 requests
Finished 1000 requests


Server Software: Hyperf
Server Hostname: 127.0.0.1
Server Port: 9501

Document Path: /order/list
Document Length: 19518 bytes

Concurrency Level: 1000
Time taken for tests: 1.681 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 19679000 bytes
HTML transferred: 19518000 bytes
Requests per second: 594.93 [#/sec] (mean)
Time per request: 1680.876 [ms] (mean)
Time per request: 1.681 [ms] (mean, across all concurrent requests)
Transfer rate: 11433.19 [Kbytes/sec] received

Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.4 0 5
Processing: 415 1195 156.3 1236 1489
Waiting: 152 1191 157.9 1234 1489
Total: 416 1195 156.3 1236 1489

Percentage of the requests served within a certain time (ms)
50% 1236
66% 1278
75% 1298
80% 1308
90% 1365
95% 1409
98% 1431
99% 1456
100% 1489 (longest request)