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.

eZ debug

Timing: Jan 18 2025 11:38:15
Script start
Timing: Jan 18 2025 11:38:15
Module start 'content'
Timing: Jan 18 2025 11:38:15
Module end 'content'
Timing: Jan 18 2025 11:38:15
Script end

Main resources:

Total runtime0.1859 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0081 587.9609180.8047
Module start 'content' 0.00810.0067 768.765697.9766
Module end 'content' 0.01480.1711 866.7422533.3750
Script end 0.1859  1,400.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00412.2126200.0002
Check MTime0.00170.8964200.0001
Mysql Total
Database connection0.00090.479210.0009
Mysqli_queries0.137573.96241410.0010
Looping result0.00150.81471390.0000
Template Total0.170591.710.1705
Template load0.00090.467410.0009
Template processing0.169691.233110.1696
Override
Cache load0.00060.327510.0006
Sytem overhead
Fetch class attribute can translate value0.00100.523310.0010
XML
Image XML parsing0.00020.123710.0002
General
dbfile0.00160.8841200.0001
String conversion0.00000.003130.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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