class Illuminate / Support / Benchmark
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

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

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