class
Illuminate
/
Support
/
Benchmark
Benchmark
Methods
public
static
measure ( $benchmarkables , int $iterations ) : array|float
Measure a callable or array of callables over the given number of iterations.
Parameters
- $benchmarkables Closure |array
- $iterations int
public
static
value ( callable $callback ) : array{0: \TReturn, 1: float}
Measure a callable once and return the duration and result.
Parameters
- $callback callable
public
static
dd ( $benchmarkables , int $iterations ) : never
Measure a callable or array of callables over the given number of iterations, then dump and die.
Parameters
- $benchmarkables Closure |array
- $iterations int