perform() public method

public perform ( Test $test )
$test MessagePack\Tests\Perf\Test
 private function measurePerform(Target $target, Test $test)
 {
     $time = microtime(true);
     for ($i = $this->iterations; $i; $i--) {
         $target->perform($test);
     }
     return microtime(true) - $time;
 }
 private function measurePerform(Target $target, Test $test)
 {
     $iterations = 0;
     $time = microtime(true) + $this->duration;
     while (microtime(true) <= $time) {
         $target->perform($test);
         ++$iterations;
     }
     return $iterations;
 }