MessagePack\Tests\Perf\Benchmark\AverageableBenchmark::benchmark PHP 메소드

benchmark() 공개 메소드

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;
    }