TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   Accurate Page Load Time (http://www.talkphp.com/absolute-beginners/2748-accurate-page-load-time.html)

Garrett 05-03-2008 06:13 AM

Accurate Page Load Time
 
I am using Smarty (best thing ever), and I would like to see the actual amount of time it is saving. All the little snippets (figured there would be a quick copy-paste), but they are all very different...
Example numbers...
214,22455.5556...
525525.22255
0.75 (Most accurate, but limits only 2, after 10 refreshes, it goes back to 9 assuming it's .099, not .9)

So what is the best way to do it, that will give me enough to analyze as well? :-/

Aaron 05-03-2008 09:28 AM

The time your page takes to load is really random. It takes longer to do a process at times than others. The speed depends mostly on what else is running (in my experience)

As for the timing, use benchmarks.

Garrett 05-03-2008 09:39 AM

Quote:

Originally Posted by Aaron (Post 14195)
The time your page takes to load is really random. It takes longer to do a process at times than others. The speed depends mostly on what else is running (in my experience)

As for the timing, use benchmarks.

I don't care if it's "random" as you say...generally they will all be the same unless, well I don't even know when. I doubt Smarty puts any strain on anything to make it execute longer. I just need a bulletproof method to track page load time, that is all.

wGEric 05-05-2008 05:40 AM

Most I've seen use microtime at the start of the script and then run it again at the end of the script. Find the difference and that is how long it takes to run.

Each refresh will be different since many different factors contribute to how long it takes a server to generate a page.


All times are GMT. The time now is 04:52 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0