Help
-
It's a small snippet that measures time from start to the end of site generation. It consists of two parts: one in beggining of first loaded file (usually something like header.php or start.php),
and one at the end of last file (footer.php, end.php, etc.). Of course filenames can be different. This is the code:
<?php
// stopeo start - insert at beggining of first loaded file
$stopeo_start = microtime(true);
?>
<?php
// stopeo end - insert at the end of last file
echo "<!-- stopeo: ".round(microtime(true) - $stopeo_start, 4)."s -->";
?>
-
If you're using WordPress, just add this at the end of footer.php file of your template:
<?php
// stopeo wp - insert at the end of footer.php
echo "<!-- stopeo: ".round(timer_stop(), 4)."s -->";
?>
-
Yes. (Thanks to Maciej Płoński):
import time
# stopeo start - insert at beggining of first loaded file
stopeo = time.clock()
# stopeo end - insert at the end of last file
yourpagecontent += "<!-- stopeo: " + str(time.clock() - stopeo) + "s -->"
-
Yes. (Thanks to wsl):
# Place the following at the beginning of your application...
use Time::HiRes;
my $beginTime = Time::HiRes::time();
# ... and the following at the end.
printf '<!-- stopeo: %ss -->', Time::HiRes::time() - $beginTime;
-
Yes. Evgenios Skitsanos wrote how to use stopeo in ASP.NET.
-
Are You using WP-SuperCache or other output caching system? If yes, than that is your problem. Stopeo doesn't receive real generation time, but only time in which cache was build. Evry check gets same value from cache. At this point, stopeo is useless for You.
-
Does your homepage produce any load to server? If it's just simple splash, it generates very quickly. stopeo is rounding time to 4 decimal places, so 0.00001s equals 0s. Just use stopeo for more complicated sites.
-
There are many things that could go wrong. Contact us, and we'll help: contact@stopeo.com :)
-
Well all languages have some kind of time functions, but we don't know all of them ;) If you know how to do it, let us know: faq@stopeo.com
-
Checking how long it took loading of a page isn't that precise. There are many variables (like DNS response, ISP) that can cause false data. We want to check real server performance.
-
If machine does respond to ping, it doesn't mean that web server is up and running. Sometimes ping takes 100ms, but page is generating 20 times slower than usual. Tools like El Monito can't check if your web server/database server overloaded.
Here comes stopeo :)
-
Sure:
<a href="http://stopeo.com">
<img src="http://stopeo.com/i/button.gif" alt="stopeo" />
</a>
-
Maybe, because You didn't let us know ;) Just send it here: faq@stopeo.com