I am doing some cross-host benchmarking with wordpress, and rather than going to the huge trouble of setting up an identical install of wordpress on each host, a huge investment of time, etc., I want to create a single php file that would simulate the php demands of wordpress and use that file to gauge each host's relative wordpress efficiency.

What might such a file look like? Or does it matter? Would a standard php benchmark file suffice?

Note: for my purposes, I'm ignoring database calls from my calculations.


Afaik there's no real performance test available (what exactly do you want to check?), but you can find a plugin that came out of the first Q below, that might help you doing some profilling.

An interesting read might be…

  1. refactoring WP to improve memory performance
  2. generally a lot of Qs inside the tag

Also: You can use the Debug Bar Plugin:

(source: wordpress.org)

…or if it's about plugin performance, try to take a look via the P3 Plugin Performance Profiler Plugin. No need to run this on multiple sites, as it meassures in %-values.

  • 1
    Thanks, I'll take a look at that other post, and the other stuff will certainly help. I have a client with a seemingly terrible host, On the Firebug net panel, >90% of the render time is in the top line as "waiting", which as I understand is the server's processing the page. I have several hosting accounts available to move this site to and, all things being equal, I want to see which one would run wordpress the fastest.
    – Sam
    Mar 8 '12 at 18:59

If you wanted to tests different hosts I would suggest running the WordPress unit tests and adding a timer for each test. You can install the tests via svn which also installs WordPress. You you just need to create a blank database and change wp-config.php.

  • This requires an existing Wordpress installation doesn't it? I'm looking for a light and fast solution (one file if possible), but I'll definitely look into this.
    – Sam
    Mar 9 '12 at 15:44
  • No when you checkout the tests via svn it downloads all the files including WordPress. See Automated Testing - Codex
    – Chris_O
    Mar 9 '12 at 19:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.