Php 三种加速器的性能对照

WBOY
Release: 2016-06-13 11:10:35
Original
890 people have browsed it

Php 三种加速器的性能对比

硬件环境:

服务器: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 最大600php-fpm

 

网络环境:千兆

 

测试场景:

场景一:(无任何扩展):

场景二:(开启APC 3.1.14,分配缓存512M):

场景三:(开启XCache 3.0.1,分配缓存512M):

场景四:(EAccelerator 1.0-dev ,分配缓存32M):因无法设置512,测试页生成的缓存为1.15m所以影响不大。

        以上四种场景,并发相同的用户数20 (是最佳用户数),访问同一URL(http://playback.i.ifeng.com/hehe.pi?vt=5),每个场景运行5分钟,对比三种Php缓存在同等压力下的性能情况。

测试结果:

 

扩展

CPU(us/sy)

Load average

Response time(s)

QPS/s

None

67%,26%

12

0.18

108

xcache

56%,34%

15

0.16

120

EAccelerator

64%,27%

15

0.13

150

Apc

60%,30%

13

0.11

170

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template