MessagePack\Tests\Perf\Benchmark\AverageableBenchmark::benchmark PHP Méthode

benchmark() public méthode

public benchmark ( MessagePack\Tests\Perf\Target\Target $target, Test $test )
$target MessagePack\Tests\Perf\Target\Target
$test MessagePack\Tests\Perf\Test
    public function benchmark(Target $target, Test $test)
    {
        $sum = 0;
        for ($i = $this->rounds; $i; $i--) {
            $sum += $this->benchmark->benchmark($target, $test);
        }
        return $sum / $this->rounds;
    }