PHP Classes

CBenchmark: Measure the time a script takes to execute

Recommend this page to a friend!
     
  Info   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: 550 All time: 5,511 This week: 455Up
Version License PHP version Categories
clsbenchmark 1.0GNU General Publi...5PHP 5, Performance and optimization
Description 

Author

This class can be used to measure the time a PHP script takes to execute.

It can start measuring execution time in different script check points. Each check point is tagged with a label.

The class can also measure the time to execute a given function of a given object class.

The execution time statistics can be presented in an HTML table showing the different check points and the time it took to go from one to the other.

Picture of Borislav Nedelchev
Name: Borislav Nedelchev <contact>
Classes: 1 package by
Country: Bulgaria Bulgaria
Age: ???
All time rank: 316922 in Bulgaria Bulgaria
Week rank: 178 Up2 in Bulgaria Bulgaria Up

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file clsBenchMark.php Class Benchmark class implementation
Plain text file example.classes.php Example Demo classes used in some of the examples
Plain text file example1.php Example Demo example of using benchmark class
Plain text file example2.php Example Demo example of using benchmark class
Plain text file example3.php Example Demo example of using benchmark class

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:550
This week:0
All time:5,511
This week:455Up