Agnostic ISP Speed โ€‹โ€‹Testing

What's the best way to test the speed of a LAMP based site without considering the user's connection?

In other words, I have a CMS and I want to see how long it takes PHP and MySQL to do all of their work.

Also, I do not have access to the server on the server, it is in a shared hosting environment.

0


source to share


2 answers


The best way in this case is to let the server think of itself. Wrap your CMS code to store the start time, then subtract it from the current time at the end of the script and print it out.

This code can be used to read the time value:



function curtime()
{
        $tm = explode(' ', microtime());
        return $tm[1] + $tm[0];
}

      

+2


source


This can be quite a challenge to validate if you want an answer that matters to the user and not the engineer. Keynote Systems does it professionally. (Disclaimer: I got settled with them almost a long time ago, but haven't spoken to them in years.)



0


source







All Articles