Bench\Ab::fetchReqSec PHP Method

fetchReqSec() protected method

protected fetchReqSec ( $log_file )
    protected function fetchReqSec($log_file)
    {
        $text = file_get_contents($log_file);
        preg_match('/Requests per second: *(.*)/', $text, $matches);
        return (float) $matches[1];
    }