In this tutorial you will learn about CodeIgniter Benchmarking. If you want to measure the time taken to run a set of lines or to use the memory, you can calculate it using CodeIgniter Benchmarking Points. There is a separate ” Benchmarking ” class in CodeIgniter for this purpose.

This class is automatically loaded; you don’t need to load it. It can be used in controllers, views and model classes anywhere. All you have to do is mark a start and end point and then run the elapsed_time() function between these two marked points and you can get the time it took to run the code as shown below.

Tutorial Pace is Pakistan's first and only platform from where you can learn market demanding technologies right from developers. Tutorial Pace is developed by a developer for developers. We are working to maintain the quality of content and practical knowledge within our tutorials.