Login   Register  
PHP Classes
elePHPant
Icontem

Little Benchmark: Measure RAM amount, total and partial script time.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-04-12 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 250 This week: 1All time: 6,889 This week: 1,397Up
Version License PHP version Categories  
little-benchmark 0.3.3GNU Lesser General Publ...5PHP 5, Time and Date, Performance and...
Description Author  

This class can measure the time passed between execution moments.

It can start a timer in a given moment and take note of the time that elapsed until another moment after having executed some PHP code.

Each moment is associated to a given text label. The class also records the RAM amount used by the current PHP script when it records the elapsed time for a given moment.

The class can return all the recorded moments as a single array or JSON object.

Picture of andrea bernardi
Name: andrea bernardi <contact>
Classes: 2 packages by
Country: Italy Italy
Age: 37
All time rank: 2735104 in Italy Italy
Week rank: 1080 Up48 in Italy Italy Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file class.LittleBenchmark.php Class the only required file
Accessible without login Plain text file example.php Example Working example on how one can use Little Benchmark

 Version Control Unique User Downloads Download Rankings  
 0%Total:250All time:6,889
 This week:1This week:1,397Up