PHP Classes

PHP Benchmark Tool: Measure the time and memory that a PHP script uses

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: 188 All time: 8,617 This week: 206Up
Version License PHP version Categories
benchmarks 1.0.0MIT/X Consortium ...5PHP 5, Performance and optimization
Description 

Author

This package can measure the time and memory that a PHP script uses.

It can start taking note of a given moment that a script is running and record the start time and memory the script is using.

The package can also keep track of the time that elapsed and the memory that was used until one or more points of the same script.

It can as well measure the time and memory used when calling a given piece of code passed to the package as callable function.

Innovation Award
PHP Programming Innovation award nominee
June 2019
Number 4
Many developers want to optimize their applications so they make a more efficient use of server resources.

Often developers are just concerned with the speed of their code but the RAM memory usage level is also important because when a server runs out RAM it starts using memory swap space in the system swap disc and the whole system starts getting too slow.

This package provides means to not only measure the time PHP code takes to execute so you can find any bottleneck and opportunities to make it faster, but also how much memory the code of a PHP script is taking so you can also focus your efforts in reducing the RAM memory usage.

Manuel Lemos
Picture of Alexandre
  Performance   Level  
Name: Alexandre <contact>
Classes: 6 packages by
Country: France France
Age: ???
All time rank: 355492 in France France
Week rank: 227 Up11 in France France Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (8)  
File Role Description
Files folder imagesrc (3 files)
Files folder imagetests (3 files)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file phpunit.xml Data Auxiliary data

  Files folder image Files (8)  /  src  
File Role Description
  Plain text file Bench.php Class Class source
  Plain text file BenchManager.php Class Class source
  Plain text file Snap.php Class Class source

  Files folder image Files (8)  /  tests  
File Role Description
  Plain text file BenchManagerTest.php Class Class source
  Plain text file BenchTest.php Class Class source
  Plain text file SnapTest.php Class Class source

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  
 100%
Total:188
This week:0
All time:8,617
This week:206Up