Skip to content

derickr/phpbench

This branch is 587 commits behind phpbench/phpbench:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 29, 2017
6580302 · Dec 29, 2017
Mar 28, 2016
Nov 11, 2017
Dec 21, 2016
Dec 29, 2017
Dec 29, 2017
Dec 29, 2017
Dec 29, 2017
Nov 26, 2017
Mar 28, 2016
Mar 2, 2016
Dec 3, 2017
Sep 24, 2016
May 3, 2015
Nov 5, 2017
Mar 28, 2016
Mar 28, 2016
Dec 29, 2017
Dec 26, 2017
Nov 5, 2017
Dec 29, 2017

Repository files navigation

PhpBench

PHPBench Logo Build Status StyleCI

PhpBench is a benchmarking framework for PHP.

Features:

  • Nice command line interface.
  • Generate reports and render them to different mediums (Console, HTML, Markdown, etc).
  • Benchmarks executed in a separate process, no effective overhead, no autoloader pollution.
  • Control stability of results with multiple iterations and retry threshold.
  • Memory usage statistics.
  • Records environment (e.g. VCS info, OS info, etc.)
  • Standard deviation and Z-Scores.
  • Kernel density estimate used to estimate the mode.
  • Time unit specification.
  • Output mode specification (throughput, average time).
  • Parameterized benchmarking cases.
  • Per-project configuration.
  • Store and query results.
  • Before and After method / class specification.
  • Pause (recover) between iterations.
  • Assertions.
  • Extendable.
  • More..

Installation Instructions

You can install PHPBench either as as a PHAR or as a project dependency.

Installing as a PHAR allows you to easily self-update to the latest. bleeding edge, version.

See the installation instructions for information on both methods of installation.

Documentation

See the official documentation.

Screenshots

Default output:

phpbench-standard

Aggregate report with "dots" logger:

phpbench-aggregate

Blinken logger:

phpbench-blinken

HTML report:

phpbench2

Storage log:

storage_log

See also

This library was influenced by the athletic benchmarking framework.

About

PHP Benchmarking framework

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 98.7%
  • XSLT 1.1%
  • Other 0.2%