Skip to content

lmaslowski/phpbench

 
 

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.
  • Serialize results as XML and generate reports later.
  • Before and After method / class specification.
  • Pause (recover) between iterations.
  • Extendable.
  • More..

Documentation and Installation Instructions

See the official documentation

Screenshots

Default output:

phpbench-standard

Aggregate report with "dots" logger:

phpbench-aggregate

Blinken logger:

phpbench-blinken

HTML report:

phpbench2

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 97.8%
  • XSLT 2.0%
  • HTML 0.2%