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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 15:58:16
Script start
Timing: Jan 18 2025 15:58:16
Module start 'layout'
Timing: Jan 18 2025 15:58:16
Module start 'content'
Timing: Jan 18 2025 15:58:16
Module end 'content'
Timing: Jan 18 2025 15:58:16
Script end

Main resources:

Total runtime0.0177 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0058 588.1641152.6563
Module start 'layout' 0.00580.0030 740.820339.5078
Module start 'content' 0.00880.0066 780.328193.3984
Module end 'content' 0.01540.0023 873.726638.3047
Script end 0.0176  912.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002916.5652140.0002
Check MTime0.00116.3266140.0001
Mysql Total
Database connection0.00105.798410.0010
Mysqli_queries0.002513.870130.0008
Looping result0.00000.079510.0000
Template Total0.001810.410.0018
Template load0.00095.138110.0009
Template processing0.00095.188010.0009
Override
Cache load0.00063.487410.0006
General
dbfile0.00168.905880.0002
String conversion0.00000.049940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs