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