2017 © Pedro Peláez
 

library siege-benchmark

to run siege benchmark easily.

image

zekiunal/siege-benchmark

to run siege benchmark easily.

  • Friday, November 27, 2015
  • by zekiunal
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SiegeBenchmark

to run siege benchmark easily., (*1)

Introduction

This test suite is based on a work by Fabien Potencier., (*2)

Run

<?php
/**
 * include siege benchmark classes.
 */
include_once 'src/Siege/Benchmark.php';
include_once 'src/Siege/Report.php';

/**
 * php settings
 */
ini_set('error_reporting', E_ALL | E_STRICT);
ini_set('display_errors', true);
date_default_timezone_set('Europe/Istanbul');

/**
 * define targets.
 */
$targets = array(
    'Worldwide'       => 'http://www.google.com.tr',
    'AscensionIsland' => 'http://www.google.ac',
    'Canada'          => 'http://www.google.ca',
    'China'           => 'http://ww.g.cn',
    'Turkey'          => 'http://www.google.com.tr',
);

/**
 * define test options.
 */
$options = array(
    'concurrent' => '10',
    'time'       => '10s',
);

$bench = new \Siege\Benchmark($targets, $options);
$bench->run();
$bench->report();

Raw results

platform                 |      rel |      avg |        1 |        2 |        3
------------------------ | -------- | -------- | -------- | -------- | --------
Worldwide                |   9.6251 |   373.87 |   369.49 |   373.75 |   378.36
AscensionIsland          |   2.2480 |    87.32 |    86.25 |    87.78 |    87.94
Canada                   |   1.7970 |    69.80 |    69.64 |    70.71 |    69.04
China                    |   1.6106 |    62.56 |    60.92 |    62.73 |    64.03
Turkey                   |   1.2769 |    49.60 |    48.41 |    50.60 |    49.80

The Versions

27/11 2015

dev-master

9999999-dev

to run siege benchmark easily.

  Sources   Download

MIT

by Zeki Ünal