Simple PHP port of HTTPerf.rb
Simple PHP interface for httperf.
Requires httperf, of course...
:::shell
sudo port install httperf
:::shell
sudo apt-get install httperf
:::shell
sudo yum install httperf
See: httperf-0.9.1 with individual connection times.
<?php
require_once 'HTTPerf.php';
$options = array(
'server' => 'www.example.com',
'uri' => '/foo/bar',
'rate' => 10,
'num-conns' => 1000,
'verbose' => true,
'hog' => true,
'parse' => true
);
$httperf = new HTTPerf();
$results = $httperf->run();
print_r($results);