Skip to content

jmervine/php-httperf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTPerf.php

Simple PHP port of HTTPerf.rb

Simple PHP interface for httperf.

Installing 'httperf'

Requires httperf, of course...

Mac

:::shell
sudo port install httperf

Debian / Ubuntu

:::shell
sudo apt-get install httperf

Redhat / CentOS

:::shell
sudo yum install httperf

My 'httperf'

See: httperf-0.9.1 with individual connection times.

Basic Usage

<?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);

Releases

No releases published

Packages

No packages published