PHP Класс PhpBench\Benchmark\RunnerContext

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( string $path, array $options = [] )
getContextName ( ) : string Return the name to assign to this suite.
getExecutor ( ) : string | array Return either an executor configuration name or an actual configuration.
getFilters ( ) Whitelist of subject method names.
getGroups ( ) : string[] Whitelist of groups to execute.
getIterations ( $default = null ) : integer Override the number of iterations to execute.
getOutputTimePrecision ( $default = null ) : string Return the output time precision.
getOutputTimeUnit ( $default = null ) : string Return the output time unit.
getParameterSets ( $default = null ) : mixed[] Override parameters.
getPath ( ) : string Return the path underwhich to scan for benchmarks.
getRetryThreshold ( $default = null ) : float Get the deviation threshold beyond which the iteration should be retried.
getRevolutions ( integer $default = null ) Get the number of rev(olutions) to run.
getSleep ( $default = null ) Override the sleep interval (in microseconds).
getStopOnError ( ) Return true if the runner should exit on the first exception encountered.
getWarmup ( integer $default = null ) Return the number of warmup revolutions that should be exectuted.

Описание методов

__construct() публичный Метод

public __construct ( string $path, array $options = [] )
$path string
$options array

getContextName() публичный Метод

NOTE: Do not confuse this with this context class. It is simply an arbitrary identifier to identify the suite when doing a comparison.
public getContextName ( ) : string
Результат string

getExecutor() публичный Метод

Return either an executor configuration name or an actual configuration.
public getExecutor ( ) : string | array
Результат string | array

getFilters() публичный Метод

Whitelist of subject method names.
public getFilters ( )

getGroups() публичный Метод

Whitelist of groups to execute.
public getGroups ( ) : string[]
Результат string[]

getIterations() публичный Метод

Override the number of iterations to execute.
public getIterations ( $default = null ) : integer
Результат integer

getOutputTimePrecision() публичный Метод

Return the output time precision.
public getOutputTimePrecision ( $default = null ) : string
Результат string

getOutputTimeUnit() публичный Метод

Return the output time unit.
public getOutputTimeUnit ( $default = null ) : string
Результат string

getParameterSets() публичный Метод

Override parameters.
public getParameterSets ( $default = null ) : mixed[]
Результат mixed[]

getPath() публичный Метод

Return the path underwhich to scan for benchmarks.
public getPath ( ) : string
Результат string

getRetryThreshold() публичный Метод

A value of NULL will disable retry.
public getRetryThreshold ( $default = null ) : float
Результат float

getRevolutions() публичный Метод

Get the number of rev(olutions) to run.
public getRevolutions ( integer $default = null )
$default integer

getSleep() публичный Метод

Override the sleep interval (in microseconds).
public getSleep ( $default = null )

getStopOnError() публичный Метод

Return true if the runner should exit on the first exception encountered.
public getStopOnError ( )

getWarmup() публичный Метод

Return the number of warmup revolutions that should be exectuted.
public getWarmup ( integer $default = null )
$default integer