What is the best way to test the speed of a LAMP based site, without factoring in the user’s connection?
In other words, I have a CMS and I want to see how long it takes for PHP and MySQL to do all their work.
Additionally I do not have shell access to the server, it is in a shared hosting environment.
The best way in this case is to let the server count itself. Wrap your CMS code to store the time the operation started, then substract it from the current time at the end of the script and print it.
You can use this code to read the time value: