\JSONDB\Benchmark
Class Benchmark
Summary
Properties
$marker
$marker : array
Description | The Benchmark mark points |
Type | array |
Methods
mark()
mark(string $name) : void
Add a benchmark point.
Parameters
string | $name |
The name of the benchmark point |
elapsed_time()
elapsed_time(string $point1 = '', string $point2 = '', integer $decimals = 4) : mixed
Calculates the elapsed time between two benchmark points.
Parameters
string | $point1 |
The name of the first benchmark point |
string | $point2 |
The name of the second benchmark point |
integer | $decimals |
The amount of numbers after the decimal point |
Returns
mixed
memory_usage()
memory_usage(string $point1 = '', string $point2 = '', integer $decimals = 4) : mixed
Calculates the memory usage of a benchmark point.
Parameters
string | $point1 |
The name of the first benchmark point |
string | $point2 |
The name of the second benchmark point |
integer | $decimals |
The amount of numbers after the decimal point |
Returns
mixed