PHP 인터페이스 PhpBench\Benchmark\ExecutorInterface

상속: extends PhpBench\Registry\RegistrableInterface
파일 보기 프로젝트 열기: dantleech/phpbench 0 사용 예제들

공개 메소드들

메소드 설명
execute ( SubjectMetadata $subjectMetadata, Iteration $iteration, Config $config ) : ResultCollection Execute the benchmark and return the result.
executeMethods ( BenchmarkMetadata $benchmark, array $methods ) Execute arbitrary methods.

메소드 상세

execute() 공개 메소드

NOTE: It is currently not, and probably never will be entirely necessary to pass the Iteration, as it contains no information other than a reference to the Variant that could be useful here. The Variant in its turn is only currently used to get the ParameterSet, but is likely more useful that the Iteration.
public execute ( SubjectMetadata $subjectMetadata, Iteration $iteration, Config $config ) : ResultCollection
$subjectMetadata PhpBench\Benchmark\Metadata\SubjectMetadata
$iteration PhpBench\Model\Iteration
$config PhpBench\Registry\Config
리턴 ResultCollection

executeMethods() 공개 메소드

This should be called based on the value of @BeforeClassMethods and @AfterClassMethods and used to establish some persistent state. Methods called here cannot establish a runtime state.
public executeMethods ( BenchmarkMetadata $benchmark, array $methods )
$benchmark PhpBench\Benchmark\Metadata\BenchmarkMetadata
$methods array