Quercus PHP performance compared to Apache mod_php + APC

“Quercus is Caucho Technology’s fast, open-source, 100% Java implementation of the PHP language” [1].

It has been demonstrated that Quercus outperforms a straight-out-of-the box installation of mod_php.

  1. “Performance: Quercus outperforms a straight mod_php implementation by about 4x (for Mediawiki and Drupal).” [1]
  2. “Resin backed PHP drives 4x performance improvements for Drupal” [2]

I had always wondered how Quercus compared to APC though, specifically for running a Drupal instance. I had planned on performing a bunch of tests, but they state clearly enough in the docs that it roughly matches PHP performance with accelerators like APC. [1]

That’s exactly what I needed to know. I’ll stick with APC until I need to write some new PHP functions in Java. So sorry to disappoint you with a lack of no new conclusions, but mod_php + APC keeps me pretty happy.

Links:
[1] http://www.caucho.com/resin-3.0/quercus/
[2] http://www.workhabit.com/labs/resin-backed-php-drives-4x-performance-improvements-drupal

This entry was posted on Wednesday, October 22nd, 2008 at 9:47 pm and is filed under Uncategorized. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “Quercus PHP performance compared to Apache mod_php + APC”

  1. S says:

    Not so. Quercus is faster than even Zend PHP. Quercus, being 100% java and acting as just another java servlet can take advantage of the following java strengths out of the box: multithreading, thread pooling, pooled database connections, incredibly fine grained performance tuning of the JVM it runs under and massive scalability.

    On a personal note, the selling points above combined with the fact that I could integrate into my applications my own file upload servlet based on the fantastic Apache Commons FileUpload library (as opposed to being stuck with the lame and resource intensive C-PHP upload functions) had me sold and I haven’t looked back. I’ve been developing with Quercus PHP for over a year now and couldn’t be happier.

  2. BM says:

    Actually, Quercus is almost 50% slower for me. :-) How I did that?
    1. Installed Quercus in GlassFish.
    2. Went to CPU game website and took a bunch of tests. In particular this one is very slow on Quercus and fast on Zend’s: http://shootout.alioth.debian.org/gp4/benchmark.php?test=nbody&lang=php&id=1

    Try yourself.

Leave a Reply