评测纯PHP无缓存之CyberPanel对比SeverPilot.io

原创 qtwrk  2018-08-23 08:02  阅读 524 次 评论 0 条

所以, 开了2头DO小鸡。

照旧AB命令, 单次请求和千次请求 + 一百并发。

纯WP 4.9.8 , 无任何插件, 系统,web服务器和PHP全部默认参数, PHP7.2 + OPCache

root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.044 seconds
 Time per request:       43.736 [ms] (mean)
 Time per request:       43.736 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.023 seconds
 Time per request:       23.121 [ms] (mean)
 Time per request:       23.121 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.023 seconds
 Time per request:       23.452 [ms] (mean)
 Time per request:       23.452 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.025 seconds
 Time per request:       24.571 [ms] (mean)
 Time per request:       24.571 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.025 seconds
 Time per request:       25.396 [ms] (mean)
 Time per request:       25.396 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.021 seconds
 Time per request:       21.312 [ms] (mean)
 Time per request:       21.312 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.022 seconds
 Time per request:       22.110 [ms] (mean)
 Time per request:       22.110 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.021 seconds
 Time per request:       20.504 [ms] (mean)
 Time per request:       20.504 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.028 seconds
 Time per request:       28.347 [ms] (mean)
 Time per request:       28.347 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 Time taken for tests:   0.021 seconds
 Time per request:       21.452 [ms] (mean)
 Time per request:       21.452 [ms] (mean, across all concurrent requests)
 Connection Times (ms)

平均时间 0.0253秒

[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.030 seconds
Time per request:       29.720 [ms] (mean)
Time per request:       29.720 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.018 seconds
Time per request:       18.239 [ms] (mean)
Time per request:       18.239 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.019 seconds
Time per request:       19.282 [ms] (mean)
Time per request:       19.282 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.019 seconds
Time per request:       19.054 [ms] (mean)
Time per request:       19.054 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.019 seconds
Time per request:       18.545 [ms] (mean)
Time per request:       18.545 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.020 seconds
Time per request:       20.215 [ms] (mean)
Time per request:       20.215 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.027 seconds
Time per request:       26.552 [ms] (mean)
Time per request:       26.552 [ms] (mean, across all concurrent requests)
Connection Times (ms)
[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1 -c 1 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
Time taken for tests:   0.018 seconds
Time per request:       18.207 [ms] (mean)
Time per request:       18.207 [ms] (mean, across all concurrent requests)
Connection Times (ms)

平均时间0.0217秒。

三轮千次请求一百并发

root@litespeed-test:~# ab -n 1000 -c 100 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 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
 Time taken for tests:   22.025 seconds
 Time per request:       2202.521 [ms] (mean)
 Time per request:       22.025 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1000 -c 100 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 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
 Time taken for tests:   21.806 seconds
 Time per request:       2180.640 [ms] (mean)
 Time per request:       21.806 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 root@litespeed-test:~# ab -n 1000 -c 100 -H "Accept-Encoding: gzip" http://serverpilot/ | grep Time
 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
 Time taken for tests:   22.080 seconds
 Time per request:       2208.030 [ms] (mean)
 Time per request:       22.080 [ms] (mean, across all concurrent requests)
 Connection Times (ms)

平均耗时21.97秒

[root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1000 -c 100 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
 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
 Time taken for tests:   18.379 seconds
 Time per request:       1837.906 [ms] (mean)
 Time per request:       18.379 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 [root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1000 -c 100 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
 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
 Time taken for tests:   18.142 seconds
 Time per request:       1814.198 [ms] (mean)
 Time per request:       18.142 [ms] (mean, across all concurrent requests)
 Connection Times (ms)
 [root@centos-s-1vcpu-2gb-tor1-01 ~]# ab -n 1000 -c 100 -H "Accept-Encoding: gzip" http://cyberpanel/ | grep Time
 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
 Time taken for tests:   18.524 seconds
 Time per request:       1852.358 [ms] (mean)
 Time per request:       18.524 [ms] (mean, across all concurrent requests)
 Connection Times (ms)

平均时间18.349秒。

综合上述, 单次请求和多次请求, CyberPanel 平均比 ServerPilot.io 节省将近16%的时间。

本文地址:https://vps.group/benchmark-cyberpanel-serverpilot-20180823.html
版权声明:本文为原创文章,版权归 qtwrk 所有,欢迎分享本文,转载请保留出处!

发表评论


表情