PHP Classes

PHP Function Profiler: Measure the time a PHP function takes to execute

Recommend this page to a friend!
     
  Info   Demos   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 244 All time: 7,995 This week: 660Up
Version License PHP version Categories
function-profiler 1.0.1GNU General Publi...3.0PHP 5, Time and Date, Performance and...
Description 

Author

This class can measure the time a PHP function takes to execute.

It takes a given function and calls it consecutively a given number of times.

The class returns the output of the function and the time that it took to execute the function in microseconds and milliseconds.

Innovation Award
PHP Programming Innovation award nominee
July 2014
Number 5


Prize: One downloadable copy of CodeLobster Professional
Sometimes it is necessary to optimize the performance of a given piece of PHP code.

This clsses allows to measure the time a function takes to execute many times, so you can evaluate more accurately if any optimizations have benefited the overall performance of the code of that function.

Manuel Lemos
Picture of Tony L. Requena
  Performance   Level  
Name: Tony L. Requena <contact>
Classes: 3 packages by
Country: Spain Spain
Age: 42
All time rank: 182645 in Spain Spain
Week rank: 163 Up8 in Spain Spain Up
Innovation award
Innovation award
Nominee: 2x

  Demo 01 class.timeprofiler.phpExternal page  

Open in a separate window

  Files folder image Files (1)  
File Role Description
Plain text file class.timeprofiler.php Class Time Profiler

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:244
This week:0
All time:7,995
This week:660Up