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...
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Метод |
Описание |
|
__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 |
|