PHP 클래스 PhpBench\Benchmark\RunnerContext

파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

공개 메소드들

메소드 설명
__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