PhpBench\Extensions\Dbal\Storage\Driver\Dbal\Loader::getBenchmark PHP Method

getBenchmark() private method

private getBenchmark ( ArrayObject $context, Suite $suite, array $row )
$context ArrayObject
$suite PhpBench\Model\Suite
$row array
    private function getBenchmark(\ArrayObject $context, Suite $suite, array $row)
    {
        $key = $row['run.uuid'] . $row['subject.benchmark'];
        if (isset($context[self::BENCHMARKS][$key])) {
            return $context[self::BENCHMARKS][$key];
        }
        $benchmark = $suite->createBenchmark($row['subject.benchmark']);
        $context[self::BENCHMARKS][$key] = $benchmark;
        return $benchmark;
    }