当前位置: 首页 > 工具软件 > Turck MMCache > 使用案例 >

强烈建议PHPer们使用Turck MMCache (转载)

钱澄邈
2023-12-01
Turck MMCache是一个类似于 Zend Optimizer/Encoder的软件,不过速度要超过后者。而且他是一个开源的软件,可以免费使用。官方网站是: http://turck-mmcache.sourceforge.net

安装方法

  在http://sourceforge.net/project/showfiles.php?group_id=69426根据你的PHP版本下载MMCache解压至任意目录后,在PHP.ini中添加如下内容即可:(C:/PHP/mmcache是MMCache所在的目录,如果是非Windows平台则是 zend_extension_ts=mmcpath/mmcache.so)

zend_extension_ts="C:/PHP/mmcache/mmcache.dll"
mmcache.shm_size="16"
mmcache.cache_dir="C:/PHP/mmcache/tmp"
mmcache.enable="1"
mmcache.optimizer="1"
mmcache.check_mtime="1"
mmcache.debug="0"
mmcache.filter=""
mmcache.shm_max="0"
mmcache.shm_ttl="0"
mmcache.shm_prune_period="0"
mmcache.shm_only="0"
mmcache.compress="1"

  目前多数的虚拟主机都没有安装Turck MMCache,实在是大大的浪费。装了之后几乎可以放多10倍的站点。而且PHP程序员用起来没有任何区别。

  下表是同类软件的比较:

No CacheAfterburner 0.14APC 1.1.0 (shm)APC 2.0bPHP Accelerator 1.3.3r2Turck MMCache 2.4.0*Zend Performance Suite 3.5.0**
Document Path:/phpMyAdmin-2.5.1/index.php
Concurrency Level:1
Complete requests:200
Document Length:2369 bytes
Time taken for tests [sec]:22.45910.23313.6064.8645.0804.6224.689
Total transferred [bytes]:522800522800522800522800529200522800522800
HTML transferred [bytes]:473800473800473800473800473800473800473800
Requests per second [#/sec]:8.9119.5414.7041.1239.3743.2742.65
Time per request [ms]:112.3051.1668.0324.3225.4023.1123.45
Time per request [ms]:
(across all concurrent requests)
112.3051.1668.0324.3225.4023.1123.45
Transfer rate [Kbytes/sec]:23.2851.0938.42107.48104.17113.11111.49
Connect Time (min/avg/max) [ms]:0/0/00/0/00/0/00/0/00/0/00/0/00/0/0
Processing Time (min/avg/max) [ms]:111/112/11350/51/5267/68/6924/24/2525/25/2622/23/2423/23/24
Total Time (min/avg/max) [ms]:111/112/11350/51/5267/68/6924/24/2525/25/2622/23/2423/23/24
Speedup [%]:100220165462442486
WINNER
480
The second

 类似资料: