sleep 0.2秒 runserver ApacheBench
確認
code:sh
$ docker-compose ps
Name Command State Ports
------------------------------------------------------------------------
django bash -c ./manage.py runser ... Up 0.0.0.0:8000->8000/tcp
実行コマンド
code:sh
キャッシュの影響とかあるかもしれないので、3回試す
req/sec
table:req/sec
1回目 57.26
2回目 35.31
3回目 18.46
なぜか結果がかなりブレている
結果詳細
1回目
code:sh
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
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: WSGIServer/0.2
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /
Document Length: 13 bytes
Concurrency Level: 100
Time taken for tests: 17.464 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 253000 bytes
HTML transferred: 13000 bytes
Requests per second: 57.26 #/sec (mean) Time per request: 1746.371 ms (mean) Time per request: 17.464 ms (mean, across all concurrent requests) Connection Times (ms)
Connect: 0 1 3.3 0 13
Processing: 206 1232 1940.5 407 15419
Waiting: 205 1182 1939.8 342 15392
Total: 207 1233 1941.1 408 15419
Percentage of the requests served within a certain time (ms)
50% 408
66% 1292
75% 1407
80% 1502
90% 3304
95% 3595
98% 7400
99% 8001
100% 15419 (longest request)
2回目
code:sh
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
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: WSGIServer/0.2
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /
Document Length: 13 bytes
Concurrency Level: 100
Time taken for tests: 28.324 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 253000 bytes
HTML transferred: 13000 bytes
Requests per second: 35.31 #/sec (mean) Time per request: 2832.425 ms (mean) Time per request: 28.324 ms (mean, across all concurrent requests) Connection Times (ms)
Connect: 0 1 2.8 0 19
Processing: 210 1509 3432.7 473 28092
Waiting: 205 1438 3438.8 397 28085
Total: 210 1510 3433.2 473 28099
Percentage of the requests served within a certain time (ms)
50% 473
66% 1311
75% 1383
80% 1466
90% 3006
95% 3656
98% 14783
99% 28060
100% 28099 (longest request)
code:sh
This is ApacheBench, Version 2.3 <$Revision: 1826891 $>
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: WSGIServer/0.2
Server Hostname: 127.0.0.1
Server Port: 8000
Document Path: /
Document Length: 13 bytes
Concurrency Level: 100
Time taken for tests: 54.159 seconds
Complete requests: 1000
Failed requests: 0
Total transferred: 253000 bytes
HTML transferred: 13000 bytes
Requests per second: 18.46 #/sec (mean) Time per request: 5415.943 ms (mean) Time per request: 54.159 ms (mean, across all concurrent requests) Connection Times (ms)
Connect: 0 1 1.3 0 7
Processing: 210 2047 5550.1 600 53942
Waiting: 206 1964 5557.7 481 53935
Total: 210 2047 5550.5 600 53945
Percentage of the requests served within a certain time (ms)
50% 600
66% 1389
75% 1547
80% 1646
90% 3548
95% 7310
98% 15798
99% 27906
100% 53945 (longest request)