PHP Classes

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

Recommend this page to a friend!
  Info   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 188 All time: 8,614 This week: 206Up
Version License PHP version Categories
benchmarks 1.0.0MIT/X Consortium ...5PHP 5, Performance and optimization


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: 354892 in France France
Week rank: 307 Up10 in France France Up
Innovation award
Innovation award
Nominee: 2x

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

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,614
This week:206Up