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
Пример #1
0
 public function runIteration(ExecutorInterface $executor, Config $executorConfig, Iteration $iteration, $sleep)
 {
     $this->logger->iterationStart($iteration);
     $result = $executor->execute($iteration, $executorConfig);
     if ($sleep) {
         usleep($sleep);
     }
     $iteration->setResult($result);
     $this->logger->iterationEnd($iteration);
 }
Пример #2
0
 public function runIteration(ExecutorInterface $executor, Config $executorConfig, Iteration $iteration, SubjectMetadata $subjectMetadata)
 {
     $this->logger->iterationStart($iteration);
     $executor->execute($subjectMetadata, $iteration, $executorConfig);
     $sleep = $subjectMetadata->getSleep();
     if ($sleep) {
         usleep($sleep);
     }
     $this->logger->iterationEnd($iteration);
 }