lib/Benchmark/BaselineManager.php
public function benchmark($name, $revs)
    {
        if (!isset($this->callables[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown baseline callable "%s", known baseline callables: "%s"',
                $name, implode('", "', array_keys($this->callables))
            ));
        }

        $start = microtime(true);
        call_user_func($this->callables[$name], $revs);

        return (microtime(true) - $start) / $revs * 1E6;
    }
public function benchmark($name, $revs)
    {
        if (!isset($this->callables[$name])) {
            throw new \InvalidArgumentException(sprintf(
                'Unknown baseline callable "%s", known baseline callables: "%s"',
                $name, implode('", "', array_keys($this->callables))
            ));
        }

        $start = microtime(true);
        call_user_func($this->callables[$name], $revs);

        return (microtime(true) - $start) / $revs * 1E6;
    }
public function benchmark ( $ name , $ revs ) { if ( ! isset ( $ this -> callables [ $ name ] ) ) { throw new \ InvalidArgumentException ( sprintf ( 'Unknown baseline callable "%s", known baseline callables: "%s"' , $ name , implode ( '", "' , array_keys ( $ this -> callables ) ) ) ) ; } $ start = microtime ( true ) ; call_user_func ( $ this -> callables [ $ name ] , $ revs ) ; return ( microtime ( true ) - $ start ) / $ revs * 1E6 ; }
Return mean time taken to execute the named baseline
callable in microseconds.

@return float
Return mean time taken to execute the named baseline callable in microseconds .