Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

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:


…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.

share|improve this answer
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
add comment

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.

share|improve this answer
    
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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