PHP Classes

CBenchmark: Measure the time a script takes to execute

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 549 All time: 5,509 This week: 266Up
Version License PHP version Categories
clsbenchmark 1.0GNU General Publi...5PHP 5, Performance and optimization


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: 316522 in Bulgaria Bulgaria
Week rank: 341 Up2 in Bulgaria Bulgaria Up

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:5,509
This week:266Up