PHP Class PhpBench\Model\Subject

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

Méthodes publiques

Méthode 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 méthode

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

createVariant() public méthode

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
Résultat Variant.

getBenchmark() public méthode

Return the (containing) benchmark for this subject.
public getBenchmark ( ) : BenchmarkMetadata
Résultat BenchmarkMetadata

getGroups() public méthode

public getGroups ( )

getIndex() public méthode

public getIndex ( )

getName() public méthode

Return the method name of this subject.
public getName ( ) : string
Résultat string

getOutputMode() public méthode

public getOutputMode ( )

getOutputTimePrecision() public méthode

getOutputTimeUnit() public méthode

public getOutputTimeUnit ( )

getRetryThreshold() public méthode

public getRetryThreshold ( )

getSleep() public méthode

public getSleep ( )

getVariants() public méthode

public getVariants ( )

inGroups() public méthode

public inGroups ( array $groups )
$groups array

setGroups() public méthode

public setGroups ( $groups )

setOutputMode() public méthode

public setOutputMode ( $outputMode )

setOutputTimePrecision() public méthode

public setOutputTimePrecision ( $outputTimePrecision )

setOutputTimeUnit() public méthode

public setOutputTimeUnit ( $outputTimeUnit )

setRetryThreshold() public méthode

public setRetryThreshold ( $retryThreshold )

setSleep() public méthode

public setSleep ( $sleep )