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...
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? :-/
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.
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