PHP 클래스 PhpBench\Benchmark\Executor\BaseExecutor

The executor bundles both the methods for executing before and after and the benchmark iteration executor. The standard use case for an Executor is to execute or obtain the iteration measurements in a different way (e.g. xdebug, blackfire), the executeMethods logic has nothing to do with this and so this awkward base class is required. To be refactored...
상속: implements PhpBench\Benchmark\ExecutorInterface
파일 보기 프로젝트 열기: dantleech/phpbench 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Launcher $launcher )
execute ( SubjectMetadata $subjectMetadata, Iteration $iteration, Config $config )
executeMethods ( BenchmarkMetadata $benchmark, array $methods )

보호된 메소드들

메소드 설명
launch ( Payload $payload, Iteration $iteration, Config $config ) : ResultCollection Launch the payload. This method has to return the ResultCollection.

메소드 상세

__construct() 공개 메소드

public __construct ( Launcher $launcher )
$launcher PhpBench\Benchmark\Remote\Launcher

execute() 공개 메소드

public execute ( SubjectMetadata $subjectMetadata, Iteration $iteration, Config $config )
$subjectMetadata PhpBench\Benchmark\Metadata\SubjectMetadata
$iteration PhpBench\Model\Iteration
$config PhpBench\Registry\Config

executeMethods() 공개 메소드

public executeMethods ( BenchmarkMetadata $benchmark, array $methods )
$benchmark PhpBench\Benchmark\Metadata\BenchmarkMetadata
$methods array

launch() 추상적인 보호된 메소드

Launch the payload. This method has to return the ResultCollection.
abstract protected launch ( Payload $payload, Iteration $iteration, Config $config ) : ResultCollection
$payload PhpBench\Benchmark\Remote\Payload
$iteration PhpBench\Model\Iteration
$config PhpBench\Registry\Config
리턴 ResultCollection