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.
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 edited Mar 8, 2012 at 18:03 kaiser 50.9k27 gold badges150 silver badges245 bronze badges asked Mar 8, 2012 at 17:29 SamSam 1134 bronze badges2 Answers
Reset to default 2Afaik 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…
- refactoring WP to improve memory performance
- generally a lot of Qs inside the performance tag
Also: You can use the Debug Bar Plugin:
(source: wordpress)
…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.
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.