可搜索,可注册,可登录,致敬逗比大佬!尽在救援版逗比根据地 dbgjd.com
投稿文章 | 广告合作 | Telegram 群组 / 公告频道 / 使用教程

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

News dmoorer89011961 80℃ 0评论

所以, 开了2头DO小鸡。

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

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

[email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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秒

[[email protected] ~]# 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) [[email protected] ~]# 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) [[email protected] ~]# 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) [[email protected] ~]# 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) [[email protected] ~]# 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) [[email protected] ~]# 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) [[email protected] ~]# 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) [[email protected] ~]# 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秒。

三轮千次请求一百并发

[email protected]:~# 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)  [email protected]:~# 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)  [email protected]:~# 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秒

[[email protected] ~]# 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)  [[email protected] ~]# 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)  [[email protected] ~]# 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%的时间。

转载请注明:逗比根据地 » 评测纯PHP无缓存之CyberPanel对比SeverPilot.io

喜欢 (0)
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址