PHP Класс PhpBench\Benchmark\Runner

Показать файл Открыть проект

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

Метод Описание
__construct ( BenchmarkFinder $benchmarkFinder, ConfigurableRegistry $executorRegistry, Supplier $envSupplier, $retryThreshold, string $configPath )
run ( RunnerContext $context ) Run all benchmarks (or all applicable benchmarks) in the given path.
runIteration ( PhpBench\Benchmark\ExecutorInterface $executor, Config $executorConfig, Iteration $iteration, SubjectMetadata $subjectMetadata )
setProgressLogger ( PhpBench\Progress\LoggerInterface $logger ) Set the progress logger to use.

Приватные методы

Метод Описание
runBenchmark ( PhpBench\Benchmark\ExecutorInterface $executor, RunnerContext $context, Benchmark $benchmark, BenchmarkMetadata $benchmarkMetadata )
runSubject ( PhpBench\Benchmark\ExecutorInterface $executor, RunnerContext $context, Subject $subject, SubjectMetadata $subjectMetadata )
runVariant ( PhpBench\Benchmark\ExecutorInterface $executor, RunnerContext $context, SubjectMetadata $subjectMetadata, Variant $variant )

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

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

public __construct ( BenchmarkFinder $benchmarkFinder, ConfigurableRegistry $executorRegistry, Supplier $envSupplier, $retryThreshold, string $configPath )
$benchmarkFinder BenchmarkFinder
$executorRegistry PhpBench\Registry\ConfigurableRegistry
$envSupplier PhpBench\Environment\Supplier
$configPath string

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

The $name argument will set the "name" attribute on the "suite" element.
public run ( RunnerContext $context )
$context RunnerContext

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

public runIteration ( PhpBench\Benchmark\ExecutorInterface $executor, Config $executorConfig, Iteration $iteration, SubjectMetadata $subjectMetadata )
$executor PhpBench\Benchmark\ExecutorInterface
$executorConfig PhpBench\Registry\Config
$iteration PhpBench\Model\Iteration
$subjectMetadata PhpBench\Benchmark\Metadata\SubjectMetadata

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

Set the progress logger to use.
public setProgressLogger ( PhpBench\Progress\LoggerInterface $logger )
$logger PhpBench\Progress\LoggerInterface