/** * Returns the parameters to pass to ab * @param ABenchmark $benchmark the benchmark to run * @return string the parameters */ protected function buildAbParameters(ABenchmark $benchmark) { $params = array(); $params[] = "-n " . $this->requests; // the number of requests to make $params[] = "-c " . $this->concurrency; // the number of concurrent requests // last item, the URL $params[] = $benchmark->getUrl(); return implode(" ", $params); }