測試條件
硬體:CPU *2、4GB 記憶體軟體:Apache 2.4.25 / PHP 7.0.15
64824 條 rewrite rule,大概長得像這樣
Redirect /981ccp https://ceiba.net/course/6a06f1/index.htm
指令:ab -c 100 -n 1000 http://10.161.91.212/tmp/phpinfo_x.php
Document Length: 78741 bytes
Concurrency Level: 100
AllowOverride none
Time taken for tests: 0.804 secondsComplete requests: 1000
Failed requests: 97
(Connect: 0, Receive: 0, Length: 97, Exceptions: 0)
Total transferred: 78925892 bytes
Requests per second: 1243.75 [#/sec] (mean)
Time per request: 80.402 [ms] (mean)
Time per request: 0.804 [ms] (mean, across all concurrent requests)
Transfer rate: 95863.61 [Kbytes/sec] received
CPU 使用率:2 個 CPU 大約 50%
記憶體使用率:523MB
AllowOverride All
Time taken for tests: 49.415 secondsComplete requests: 1000
Failed requests: 80
(Connect: 0, Receive: 0, Length: 80, Exceptions: 0)
Total transferred: 78925914 bytes
Requests per second: 20.24 [#/sec] (mean)
Time per request: 4941.538 [ms] (mean)
Time per request: 49.415 [ms] (mean, across all concurrent requests)
Transfer rate: 1559.76 [Kbytes/sec] received
CPU 使用率:2 個 CPU 皆 100%
記憶體使用率:最高 2GB,大約在 1GB 至 1.5GB 之間
沒有留言:
張貼留言