Timing Joomla page loading

If you want to time how long it takes to generate every page on a Joomla site then you can simply add the following code to your template file.

Add at the top of the template:

<?php
$tstart = mosProfiler::getmicrotime();
?>

Add to the bottom of the template:

<?php
$tend = mosProfiler::getmicrotime();
$totaltime = ($tend - $tstart);
printf("Page was generated in %f seconds", $totaltime);
?>

2 Responses to “Timing Joomla page loading”

  1. Idetrorce Says:

    very interesting, but I don’t agree with you
    Idetrorce

  2. Blog Says:

    Blog

    Blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.