PHP Class PhpBench\Model\Subject

It represents the result rather than the details of how to create that result.
Mostrar archivo Open project: dantleech/phpbench Class Usage Examples

Public Methods

Method Description
__construct ( Benchmark $benchmark, string $name )
createVariant ( ParameterSet $parameterSet, integer $revolutions, integer $warmup, array $computedStats = [] ) : Variant. Create and add a new variant based on this subject.
getBenchmark ( ) : BenchmarkMetadata Return the (containing) benchmark for this subject.
getGroups ( )
getIndex ( )
getName ( ) : string Return the method name of this subject.
getOutputMode ( )
getOutputTimePrecision ( )
getOutputTimeUnit ( )
getRetryThreshold ( )
getSleep ( )
getVariants ( )
inGroups ( array $groups )
setGroups ( $groups )
setOutputMode ( $outputMode )
setOutputTimePrecision ( $outputTimePrecision )
setOutputTimeUnit ( $outputTimeUnit )
setRetryThreshold ( $retryThreshold )
setSleep ( $sleep )

Method Details

__construct() public method

public __construct ( Benchmark $benchmark, string $name )
$benchmark Benchmark
$name string

createVariant() public method

Create and add a new variant based on this subject.
public createVariant ( ParameterSet $parameterSet, integer $revolutions, integer $warmup, array $computedStats = [] ) : Variant.
$parameterSet ParameterSet
$revolutions integer
$warmup integer
$computedStats array
return Variant.

getBenchmark() public method

Return the (containing) benchmark for this subject.
public getBenchmark ( ) : BenchmarkMetadata
return BenchmarkMetadata

getGroups() public method

public getGroups ( )

getIndex() public method

public getIndex ( )

getName() public method

Return the method name of this subject.
public getName ( ) : string
return string

getOutputMode() public method

public getOutputMode ( )

getOutputTimePrecision() public method

getOutputTimeUnit() public method

public getOutputTimeUnit ( )

getRetryThreshold() public method

public getRetryThreshold ( )

getSleep() public method

public getSleep ( )

getVariants() public method

public getVariants ( )

inGroups() public method

public inGroups ( array $groups )
$groups array

setGroups() public method

public setGroups ( $groups )

setOutputMode() public method

public setOutputMode ( $outputMode )

setOutputTimePrecision() public method

public setOutputTimePrecision ( $outputTimePrecision )

setOutputTimeUnit() public method

public setOutputTimeUnit ( $outputTimeUnit )

setRetryThreshold() public method

public setRetryThreshold ( $retryThreshold )

setSleep() public method

public setSleep ( $sleep )