Skip to content

jamiebclark/Benchmark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Benchmark for CakePHP

Benchmarking script in CakePHP

This is a small CakePHP plugin I wrote to quickly track how long my code was taking to run.

Installation

  1. Copy the contents into your app/Plugin/ directory
  2. Load the plugin in your bootstrap.php file

Use

  1. Include App::uses('Benchmark', 'Benchmark.Vendor'); wherever you want to use the function. For app-wide use, include it in your bootstrap.php file
  2. Include Benchmark::set('[BENCHMARK LABEL]'); wherever you'd like to track your progress
  3. Output your progress by including the PHP code echo $this->element('Benchmark.table');
  4. Optionally you can use the component CallbackBenchmarkComponent.php for some automatically generated benchmarks based on callbacks

About

Benchmarking script in CakePHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages