PHP 5.2.16版本與PHP 5.4.9版天效能對比

來源:互聯網
上載者:User
PHP 5.2.16版本與PHP 5.4.9版本效能對比

硬體環境:

伺服器:DL180G6 (16 Intel(R) Xeon(R)CPU E5620 @2.40GHz) 16G記憶體

壓力機:DL180G6 (16 Intel(R) Xeon(R)CPU E5620 @2.40GHz) 16G記憶體

軟體環境:

nginx1.2.5php5.4.9/5.2.16 XCache3.0.0 最大600php-fpm

網路環境:千兆

測試情境:

php 設定兩種不同版本,在相同硬體和網路環境,壓力配置情況下,並發相同使用者數向伺服器發送請求。對比伺服器資源佔用和事物處理能力。

測試結果:

並發使用者

CPU(us+sy)

Load average

Response time(s)

QPS/s

20

46%

9.2

0.022

950

40

49%

13.4

0.032

890

60

52%

22.8

0.043

860

80

54%

28.3

0.055

840

100

55%

42.1

0.064

820

PHP 5.2.16版本

並發使用者

CPU(us+sy)

Load average

Response time(s)

QPS/s

20

48%

8.7

0.018

1100

40

50%

14.6

0.026

1050

60

54%

21.3

0.036

1010

80

56%

26.3

0.046

998

100

57%

34.7

0.054

1020

PHP 5.4.9版本

  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.