成人国产在线小视频_日韩寡妇人妻调教在线播放_色成人www永久在线观看_2018国产精品久久_亚洲欧美高清在线30p_亚洲少妇综合一区_黄色在线播放国产_亚洲另类技巧小说校园_国产主播xx日韩_a级毛片在线免费

資訊專欄INFORMATION COLUMN

PHP框架性能不權(quán)威對(duì)比

Channe / 374人閱讀

摘要:測(cè)試環(huán)境測(cè)試前預(yù)熱測(cè)試預(yù)熱結(jié)束之后,各個(gè)框架分別輸出本地壓測(cè)最后從結(jié)果上來(lái)看表現(xiàn)不俗,后期會(huì)用再測(cè)試一下。以上僅供參考,希望后期不斷優(yōu)化讓變得更快更好。一個(gè)極速輕量級(jí)的全??蚣?/p>

測(cè)試環(huán)境
OS        : Deepin 15.4 unstable
Kernel    : x86_64 Linux 4.9.0-deepin4-amd64
Uptime    : 3d 22h 42m
Packages  : 2050
Shell     : zsh 5.2
Resolution: 1920x1080
WM        : Mutter(DeepinGala)
WM Theme  : Adwaita
GTK Theme : deepin-dark [GTK2/3]
Icon Theme: flattr
CPU       : Intel Core i5-6200U CPU @ 2.8GHz
GPU       : Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
RAM       : 2445MiB / 3854MiB
測(cè)試前預(yù)熱
ab -c 100 -n 100000 "http://easy-php.local/Demo/Index/hello"
測(cè)試

預(yù)熱結(jié)束之后,各個(gè)框架分別輸出"hello world".

本地ab壓測(cè):

ab -c 100 -n 10000 domain
Thinkphp 3.2
Benchmarking tp3.local (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.10.2
Server Hostname:        tp3.local
Server Port:            80

Document Path:          /
Document Length:        11 bytes

Concurrency Level:      100
Time taken for tests:   4.495 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      3430000 bytes
HTML transferred:       110000 bytes
Requests per second:    2224.73 [#/sec] (mean)
Time per request:       44.949 [ms] (mean)
Time per request:       0.449 [ms] (mean, across all concurrent requests)
Transfer rate:          745.20 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.2      0       3
Processing:     4   45  11.0     41      88
Waiting:        4   45  11.0     41      88
Total:          7   45  11.0     41      88

Percentage of the requests served within a certain time (ms)
  50%     41
  66%     42
  75%     44
  80%     45
  90%     68
  95%     73
  98%     77
  99%     79
 100%     88 (longest request)
Thinkphp 5
Benchmarking tp5.local (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.10.2
Server Hostname:        tp5.local
Server Port:            80

Document Path:          /
Document Length:        13 bytes

Concurrency Level:      100
Time taken for tests:   5.570 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1570000 bytes
HTML transferred:       130000 bytes
Requests per second:    1795.28 [#/sec] (mean)
Time per request:       55.702 [ms] (mean)
Time per request:       0.557 [ms] (mean, across all concurrent requests)
Transfer rate:          275.25 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       6
Processing:    12   55   9.5     52      96
Waiting:       12   55   9.5     52      96
Total:         18   55   9.4     52      96

Percentage of the requests served within a certain time (ms)
  50%     52
  66%     54
  75%     56
  80%     57
  90%     71
  95%     80
  98%     84
  99%     87
 100%     96 (longest request)
Yii2
Benchmarking yii2.local (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.10.2
Server Hostname:        yii2.local
Server Port:            80

Document Path:          /
Document Length:        11 bytes

Concurrency Level:      100
Time taken for tests:   15.307 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1480000 bytes
HTML transferred:       110000 bytes
Requests per second:    653.31 [#/sec] (mean)
Time per request:       153.067 [ms] (mean)
Time per request:       1.531 [ms] (mean, across all concurrent requests)
Transfer rate:          94.42 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.4      0       4
Processing:    22  152  12.0    151     228
Waiting:       22  152  12.0    151     228
Total:         26  152  11.8    151     228

Percentage of the requests served within a certain time (ms)
  50%    151
  66%    154
  75%    155
  80%    157
  90%    160
  95%    165
  98%    182
  99%    205
 100%    228 (longest request)
Laravel 5.4
Benchmarking laravel.local (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.10.2
Server Hostname:        laravel.local
Server Port:            80

Document Path:          /api/test/
Document Length:        18 bytes

Concurrency Level:      100
Time taken for tests:   37.053 seconds
Complete requests:      10000
Failed requests:        0
Non-2xx responses:      10000
Total transferred:      3390000 bytes
HTML transferred:       180000 bytes
Requests per second:    269.88 [#/sec] (mean)
Time per request:       370.535 [ms] (mean)
Time per request:       3.705 [ms] (mean, across all concurrent requests)
Transfer rate:          89.35 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.6      0       7
Processing:    16  369  66.9    360     574
Waiting:       16  369  66.9    360     574
Total:         18  369  66.7    360     574

Percentage of the requests served within a certain time (ms)
  50%    360
  66%    407
  75%    426
  80%    437
  90%    462
  95%    477
  98%    494
  99%    505
 100%    574 (longest request)
Lumen
Benchmarking lumen.local (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.10.2
Server Hostname:        lumen.local
Server Port:            80

Document Path:          /test
Document Length:        11 bytes

Concurrency Level:      100
Time taken for tests:   7.816 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1820000 bytes
HTML transferred:       110000 bytes
Requests per second:    1279.46 [#/sec] (mean)
Time per request:       78.158 [ms] (mean)
Time per request:       0.782 [ms] (mean, across all concurrent requests)
Transfer rate:          227.40 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       5
Processing:    11   78   5.1     77      97
Waiting:       11   78   5.1     77      97
Total:         16   78   4.9     77      97

Percentage of the requests served within a certain time (ms)
  50%     77
  66%     79
  75%     80
  80%     81
  90%     83
  95%     85
  98%     87
  99%     88
 100%     97 (longest request)
Easy PHP
Benchmarking easy-php.local (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests


Server Software:        nginx/1.10.3
Server Hostname:        easy-php.local
Server Port:            80

Document Path:          /
Document Length:        53 bytes

Concurrency Level:      100
Time taken for tests:   3.259 seconds
Complete requests:      10000
Failed requests:        0
Total transferred:      1970000 bytes
HTML transferred:       530000 bytes
Requests per second:    3068.87 [#/sec] (mean)
Time per request:       32.585 [ms] (mean)
Time per request:       0.326 [ms] (mean, across all concurrent requests)
Transfer rate:          590.40 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    0   0.3      0       4
Processing:     6   32   4.0     31      68
Waiting:        6   32   4.0     31      68
Total:          8   32   4.0     31      68

Percentage of the requests served within a certain time (ms)
  50%     31
  66%     32
  75%     33
  80%     34
  90%     39
  95%     41
  98%     43
  99%     46
 100%     68 (longest request)
最后

從結(jié)果上來(lái)看EasyPHP表現(xiàn)不俗,后期會(huì)用wrk再測(cè)試一下。

以上僅供參考,希望后期不斷優(yōu)化讓EasyPHP變得更快更好。

Easy PHP:一個(gè)極速輕量級(jí)的PHP全??蚣?/pre>

文章版權(quán)歸作者所有,未經(jīng)允許請(qǐng)勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。

轉(zhuǎn)載請(qǐng)注明本文地址:http://systransis.cn/yun/23101.html

相關(guān)文章

  • 主流PHP框架性能權(quán)威測(cè)試

    摘要:主流框架性能非權(quán)威測(cè)試作為一個(gè)開(kāi)發(fā)者,而且是初創(chuàng)企業(yè)團(tuán)隊(duì)的技術(shù)開(kāi)發(fā)者,選擇開(kāi)發(fā)框架是個(gè)很艱難的事情。用的話,語(yǔ)法有點(diǎn)啰嗦,前后端代碼分離有點(diǎn)小麻煩,不過(guò)性能是非常好的,而且已經(jīng)有眾多國(guó)內(nèi)大公司在使用了,出現(xiàn)意外可以快速的找到大牛答疑解惑。 主流PHP框架性能非權(quán)威測(cè)試 作為一個(gè)PHP開(kāi)發(fā)者,而且是初創(chuàng)企業(yè)團(tuán)隊(duì)的技術(shù)開(kāi)發(fā)者,選擇開(kāi)發(fā)框架是個(gè)很艱難的事情。 用ThinkPHP的話,招聘一個(gè)...

    imccl 評(píng)論0 收藏0
  • 如何翻譯好一篇技術(shù)文章

    摘要:你有沒(méi)有看到了一篇比較不錯(cuò)的文章,想翻譯出來(lái)分享給大家,但卻發(fā)現(xiàn)無(wú)從下手,只好放棄了的經(jīng)歷呢這篇文章或許能夠幫助到你。但是我們需要記住,我們翻譯一篇文章的時(shí)候,需要做到本土化。 你有沒(méi)有看到了一篇比較不錯(cuò)的文章,想翻譯出來(lái)分享給大家,但卻發(fā)現(xiàn)無(wú)從下手,只好放棄了的經(jīng)歷呢?這篇文章或許能夠幫助到你。 在提筆翻譯之前,我們有幾個(gè)前提條件,如果您能夠滿足這些條件,那么您的翻譯過(guò)程或許會(huì)比較順...

    huashiou 評(píng)論0 收藏0
  • 記一次 Laravel 應(yīng)用性能調(diào)優(yōu)經(jīng)歷

    摘要:為了一探究竟,于是開(kāi)啟了這次應(yīng)用性能調(diào)優(yōu)之旅。使用即時(shí)編譯器和都能輕輕松松的讓你的應(yīng)用程序在不用做任何修改的情況下,直接提高或者更高的性能。 這是一份事后的總結(jié)。在經(jīng)歷了調(diào)優(yōu)過(guò)程踩的很多坑之后,我們最終完善并實(shí)施了初步的性能測(cè)試方案,通過(guò)真實(shí)的測(cè)試數(shù)據(jù)歸納出了 Laravel 開(kāi)發(fā)過(guò)程中的一些實(shí)踐技巧。 0x00 源起 最近有同事反饋 Laravel 寫(xiě)的應(yīng)用程序響應(yīng)有點(diǎn)慢、20幾個(gè)并...

    warkiz 評(píng)論0 收藏0
  • php,vue,vue-ssr 做出來(lái)的頁(yè)面有什么區(qū)別?

    摘要:靜態(tài)頁(yè)面的或者明顯最短,原因是模板幾乎沒(méi)什么內(nèi)容。靜態(tài)頁(yè)面生成的白屏?xí)r間中,大部分是首屏數(shù)據(jù)請(qǐng)求消耗的時(shí)間,,同時(shí)也可以對(duì)比出,服務(wù)器渲染的對(duì)首屏?xí)r間的確有很明顯的效果。 歡迎大家前往騰訊云+社區(qū),獲取更多騰訊海量技術(shù)實(shí)踐干貨哦~ 本文由shirishiyue發(fā)表于云+社區(qū)專欄 目前我這邊的web頁(yè)面,都是采用php+smarty模板生成的,是一種比較早期的開(kāi)發(fā)模式。好處是沒(méi)有現(xiàn)階段...

    yibinnn 評(píng)論0 收藏0
  • php,vue,vue-ssr 做出來(lái)的頁(yè)面有什么區(qū)別?

    摘要:靜態(tài)頁(yè)面的或者明顯最短,原因是模板幾乎沒(méi)什么內(nèi)容。靜態(tài)頁(yè)面生成的白屏?xí)r間中,大部分是首屏數(shù)據(jù)請(qǐng)求消耗的時(shí)間,,同時(shí)也可以對(duì)比出,服務(wù)器渲染的對(duì)首屏?xí)r間的確有很明顯的效果。歡迎大家前往騰訊云+社區(qū),獲取更多騰訊海量技術(shù)實(shí)踐干貨哦~ 本文由shirishiyue發(fā)表于云+社區(qū)專欄 目前我這邊的web頁(yè)面,都是采用php+smarty模板生成的,是一種比較早期的開(kāi)發(fā)模式。好處是沒(méi)有現(xiàn)階段常用的...

    vpants 評(píng)論0 收藏0

發(fā)表評(píng)論

0條評(píng)論

最新活動(dòng)
閱讀需要支付1元查看
<