Forums / Install & configuration / Benchmarks - PHP-Accelerator, APC and Turck MMCache

Benchmarks - PHP-Accelerator, APC and Turck MMCache

Author Message

Anders Jensen-Urstad

Saturday 10 May 2003 7:00:27 am

I did some benchmarking with ezhttpbench on the main page of http://unix.se (local copy of the site, running eZ publish 2.2.8) with PHP-Accelerator, APC and Turck MMCache.

Summary: APC comes out on top, beating both PHPA and Turck, who had similar results. APC is being developed again, and according to http://mail.communityconnect.com/pipermail/apc-cache/2003-April/002153.html the next release should be out sometime later this month.

Tested on:

Apache 1.3.27, PHP 4.3.1, RedHat 8.1-beta, Linux 2.4.18-18.8.0
Athlon XP 1700+, 512MB RAM
ezhttpbench, count 50

Results:

Without cache:

Time elapsed: 12.66 seconds.
Average time pr page: 0.25 seconds.
File size: 42.51KB (43,527.00 bytes)

Throughput: 0.16MB/s
Throughput: 167.86KB/s
Throughput: 1.31Mb/s
Throughput: 1,342.84Kb/s

Maximum number of pages pr minute: 236.93 pages.
Maximum number of pages pr hour: 14,216.04 pages.
Maximum number of pages pr day: 341,185.01 pages.
Maximum number of pages pr month: 10,235,550.35 pages.

PHP-Accelerator 1.3.3r2, http://www.php-accelerator.co.uk:

Time elapsed: 1.74 seconds.
Average time pr page: 0.03 seconds.
File size: 42.51KB (43,527.00 bytes)

Throughput: 1.19MB/s
Throughput: 1,219.73KB/s
Throughput: 9.53Mb/s
Throughput: 9,757.84Kb/s

Maximum number of pages pr minute: 1,721.69 pages.
Maximum number of pages pr hour: 103,301.69 pages.
Maximum number of pages pr day: 2,479,240.56 pages.
Maximum number of pages pr month: 74,377,216.82 pages.

APC, http://apc.communityconnect.com/sources/apc-cvs.tar.gz:

Time elapsed: 1.53 seconds.
Average time pr page: 0.03 seconds.
File size: 42.51KB (43,527.00 bytes)

Throughput: 1.36MB/s
Throughput: 1,392.59KB/s
Throughput: 10.88Mb/s
Throughput: 11,140.71Kb/s

Maximum number of pages pr minute: 1,965.69 pages.
Maximum number of pages pr hour: 117,941.52 pages.
Maximum number of pages pr day: 2,830,596.60 pages.
Maximum number of pages pr month: 84,917,897.98 pages.

Turck MMCache 2.3.10, http://www.turcksoft.com/en/e_mmc.htm:

Time elapsed: 1.77 seconds.
Average time pr page: 0.04 seconds.
File size: 42.51KB (43,527.00 bytes)

Throughput: 1.17MB/s
Throughput: 1,198.88KB/s
Throughput: 9.37Mb/s
Throughput: 9,591.06Kb/s

Maximum number of pages pr minute: 1,692.27 pages.
Maximum number of pages pr hour: 101,536.07 pages.
Maximum number of pages pr day: 2,436,865.75 pages.
Maximum number of pages pr month: 73,105,972.57 pages.

Marco Zinn

Saturday 10 May 2003 7:30:20 am

I'd like to do some benchmarks, too. Where can I find ezhttpbench and will it work with ezp 2.2.x?

Marco
http://www.hyperroad-design.com

Anders Jensen-Urstad

Saturday 10 May 2003 7:48:53 am

Seems like it's no longer available on ez.no, but I put it up here: http://x.unix.se/etc/ezhttpbench.php

It'll work with any HTTP page. Note that it can fetch and display any local readable system file, so don't make it publicly available (and delete or move it when you're done).

You can also use ab, which is a benchmarking tool included in Apache. It's probably in the same directory as httpd/apachectl/etc.

Gabriel Ambuehl

Saturday 10 May 2003 10:18:26 am

Against what did you let the benchmarks run? Against the demo or something else?

I had about 5 pr/s against the demo with PHPA on slightly faster hardware (Athlon XP2000+), FreeBSD 4.8 so I'm somewhat surprised by the speed of your accelerated tests...

Visit http://triligon.org

Anders Jensen-Urstad

Saturday 10 May 2003 10:29:27 am

http://unix.se/ main page - much less sql-intensive than the eZ publish 2.2.x demo main page.