Benchmark of Intel Compiled (ICC) Apache, PHP and APC
Bård Farstad
Monday 03 April 2006
Since the testing of MySQL compiled with Intel ICC showed good numbers I carried on some testing with Apache, PHP and APC also compiled with the ICC compiler. The test was done with eZ publish running on a Linux server with Xeon processors.
All tests showed speed improvements. When I ran tests on template processing, which is the most PHP intensive operations in eZ publish, it showed improvements from 17.4% to 19.6% faster with the ICC compiler. Total script runtime measured with ab ranged from 6.3% to 12.7% faster. Of course these numbers are a bit lower since they include I/O like network transfer of the pages and so on. The more PHP intensive and heavy the script was the faster it ran under ICC.
Of course this compiler comes with a $399 pricetag so you have to compare that with the performance gained with it. In our case it looks like heavy operations are boosted by close to 20%.
To get your stack compiled with ICC you simply install the compiler as instructed by Intel and export the CC environment variable.
export CC=/opt/intel/cc/9.0/bin/icc
Once this is set up you can do a make clean and rm config.cache followed by a ./configure. For APC you also need to run phpize before you configure. Then you make and make install like normal. No tweaking was done other than this so there is mabye room for further tweaking of compiler parameters.
It would be good to hear other people's experience with PHP and the ICC compiler.
Trackbacks (0)
Comments (3)
I've also seen good gains with ICC, including the kernel
Chris Stephens
Monday 24 April 2006