2017 © Pedro Peláez
 

library phpbench

PHP Benchmarking Framework

image

dantleech/phpbench

PHP Benchmarking Framework

  • 6 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SWUbanner, (*1)

, (*2)

StandWithUkraine CI Documentation Latest Stable Version Total Downloads License, (*3)

PHPBench is a benchmark runner for PHP analogous to PHPUnit but for performance rather than correctness., (*4)

Features include:, (*5)

  • Revolutions: Repeat your code many times to determine average execution time.
  • Iterations: Sample your revolutions many times and review aggregated statistical data.
  • Process Isolation: Each iteration is executed in a separate process.
  • Reporting: Customizable reports and various output formats (e.g. console, CSV, Markdown, HTML).
  • Report storage and comparison: Store benchmarks locally to be used as a baseline reference, or to reference them later.
  • Memory Usage: Keep an eye on the amount of memory used by benchmarking subjects.
  • Assertions: Assert that code is performing within acceptable limits, or that it has not regressed from a previously recorded baseline.

See the documentation to find out more., (*6)

Installation

composer require phpbench/phpbench --dev

See the installation instructions for more options., (*7)

Documentation

Documentation is hosted on readthedocs., (*8)

Community

  • Follow @phpbench on Mastodon for the latest news.
  • Join the #phpbench channel on the Slack Symfony Devs channel.

Screenshots

Running benchmarks and comparing against a baseline:, (*9)

phpbench, (*10)

Aggregated report:, (*11)

image, (*12)

Blinken logger:, (*13)

phpbench-blinken, (*14)

HTML Bar Chart:, (*15)

Untitled, (*16)

Console Bar Chart:, (*17)

Untitled, (*18)

Contributing

PHPBench is an open source project. If you find a problem or want to discuss new features or improvements please create an issue, and/or if possible create a pull request., (*19)

The Versions

07/06 2015

dev-master

9999999-dev

PHP Benchmarking Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

06/06 2015

dev-report_steps

dev-report_steps

PHP Benchmarking Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

25/05 2015
14/05 2015

dev-refactoring_to_xml

dev-refactoring_to_xml

PHP Benchmarking Framework

  Sources   Download

MIT

The Requires

 

The Development Requires