CodeIgniter: Measure Page Load Time CodeIgniter: Measure Page Load Time codeigniter codeigniter

CodeIgniter: Measure Page Load Time


Just insert {elapsed_time} into a html view:

like <p>Page rendered in {elapsed_time} seconds.

When you have a fresh install of Codeigniter, just open the default welcoming page. You can find this line in the footer.

CodeIgniter has a Benchmarking class that is always active, enabling the time difference between any two marked points to be calculated.

An alternate way to show your elapsed time in your view files is to use this pseudo-variable ...


I would point you to the Codeigniter Profiler

When used in conjunction to the Benchmarking, it gives you fairly detailed results, this should be exactly what you are looking for.

make sure you adjust your benchmark points to conform to the profiler specs though.


if you are using firefox, try the network tab of firebug, it will show you how long it will download all the page's elements, that kind of information cannot be presented just by the profiller