Home  >  Article  >  Backend Development  >  PHP 5.2.16版本与PHP 5.4.9版天性能对比

PHP 5.2.16版本与PHP 5.4.9版天性能对比

WBOY
WBOYOriginal
2016-06-13 11:10:34850browse

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版本

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn