PHP Accelerator Logo by ChristianPerformance Tests
ionCube Home  |  Introduction  |  About  |  Testimonials
Download  |  Accessories  |  Forums  |  FAQ  |  History  |  Contacts
PHP Accelerator from ionCube Japan

This page contains some performance figures from my own testing of PHPA. Performance gains are dependent on many factors, and typical gains are at least two to three times speedup, although can be substantially more. The user testimonials also indicate the effectiveness of PHPA.

The bottom of each page on this site also shows the PHP processing time and a link to the non-accelerated or accelerated page for comparison, and gives an indication of acceleration from PHPA in action

Benchmarks of the Smarty templates system with and without acceleration using PHPA show that nearly 10 times acceleration from PHPA is possible on Smarty based applications.

test from dynamicwebpages.de has a review of caches that includes an earlier version of the Accelerator.

PHPA, APC, AfterBurner Comparisons

A French site has produced a study of optimising by caching PHP, and gives another indication of the performance of PHPA compared to other caching systems.

Load Average Charts

The following load-average charts were contributed from a site running a comparison of the APC cache vs. PHPA. Note that the Y axis with load average is scaled differently for PHPA than for APC because the load average with PHPA is reduced, and so the effectiveness is even more than is aparant from the graphs.

Despite the performance differences, it should be noted that APC is also a very good Acceleration tool, and, in the spirit of PHPA, also a non-commercial venture.


Load Average using APC


Load Average using PHPA

Script Timings

The following tests give performance indications from an earlier version of the Accelerator and the Zend Cache, now known as the Zend Accelerator.

The tables below give a rough indication of possible performance gains from testing both single page loads and blasting the web server with a stream of concurrent requests using the Apache benchmarking tool. They also include comparisons with the fastest commercial product, the Zend Cache, highlighting the comparable performance. All tests bar one were on a machine with a 650Mhz Athlon and fast memory/bus. The 'odd one out' test was on the server rendering these pages and, whilst having a similar clock rate Celeron, is noticably slower overall.

The hdparm tests for interests sake at the bottom of the page show the difference in disk and memory performance of the two machines. As the Accelerator eliminates some memory allocation and copying, this may account for better acceleration seen from the slower machine as its worse memory performance may be a bigger factor in the overall timing.

Single page loads

ScriptWithout Accelerator Accelerator
SHM cache disabled
Accelerator
SHM cache enabled
Zend Cache Avg Accelerator Speedup
/site1/index.php 0.0168 0.0101 0.0058 0.0056 2.9
/site1/index.php
(Slower machine)
0.0230 unmeasured 0.0072 unmeasured 3.19
/site2/index.php 0.0659 0.0418 0.0289 0.0290 2.28
/site2/edit_profile.php 0.0388 0.0233 0.0155 0.0150 2.50

Apache Bench results with no cache, with the Accelerator, and with Zend Cache

Document Path:/join.php
Concurrency Level:3
Time taken for tests:9.000 seconds
Complete requests:100
Total transferred:1252560 bytes
HTML transferred:1215330 bytes
Requests per second:11.11
Transfer rate:137.81 kb/s received
Connnection Times (ms)
  min avg max
Connect: 0 1 109
Processing: 79 266 650
Total: 79 267 759
Document Path:/join.php
Concurrency Level:3
Time taken for tests:4.213 seconds
Complete requests:100
Total transferred:1252560 bytes
HTML transferred:1215330 bytes
Requests per second:23.74
Transfer rate:297.31 kb/s received
Connnection Times (ms)
  min avg max
Connect: 0 0 0
Processing: 37 123 533
Total: 37 123 533
Document Path:/join.php
Concurrency Level:3
Time taken for tests:4.191 seconds
Complete requests:100
Total transferred:1252560 bytes
HTML transferred:1215330 bytes
Requests per second:23.86
Transfer rate:298.87 kb/s received
Connnection Times (ms)
  min avg max
Connect: 0 2 76
Processing: 36 122 330
Total: 36 124 406
Document Path:/index.php
Concurrency Level:4
Time taken for tests:2.665 seconds
Complete requests:100
Total transferred:362972 bytes
HTML transferred:345977 bytes
Requests per second:37.52
Transfer rate:136.20 kb/s received
Connnection Times (ms)
  min avg max
Connect: 0 0 0
Processing: 22 104 351
Total: 22 104 351
Document Path:/index.php
Concurrency Level:4
Time taken for tests:1.025 seconds
Complete requests:100
Total transferred:362972 bytes
HTML transferred:345977 bytes
Requests per second:97.56
Transfer rate:354.12 kb/s received
Connnection Times (ms)
  min avg max
Connect: 0 9 27
Processing: 19 27 236
Total: 19 36 263
Document Path:/index.php
Concurrency Level:4
Time taken for tests:1.005 seconds
Complete requests:100
Total transferred:362972 bytes
HTML transferred:345977 bytes
Requests per second:99.50
Transfer rate:361.17 kb/s received
Connnection Times (ms)
  min avg max
Connect: 0 10 26
Processing: 10 26 160
Total: 10 36 186

hdparm tests from the Celeron and Athlon boxes

/dev/hda:
 Timing buffer-cache reads:   128 MB in  1.59 seconds = 80.50 MB/sec
 Timing buffered disk reads:  64 MB in  2.77 seconds = 23.10 MB/sec  

/dev/hda:
 Timing buffer-cache reads:   128 MB in  0.80 seconds =160.00 MB/sec
 Timing buffered disk reads:  64 MB in  1.83 seconds = 34.97 MB/sec  

© Copyright 2001-2004 ionCube