johnshopkins/benchmarker

There is no license information available for the latest version (v0.1) of this package.

A benchmarker used across our projects.

v0.1 2017-12-14 17:27 UTC

README

A PHP class used to benchmark PHP code.

Usage

// initialize logger (https://github.com/johnshopkins/logger)
$logger = new Logger\CommandLine();

// initialize benchmarker
$benchmarker = new Benchmarker($logger, "my script");

// do some stuff

// log some stuff
$benchmarker->log("Did some stuff");

// do some stuff

$benchmarker->end();