← Winnitude! Search  ·  Reader Mode (837 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 98 LINKS

GitHub - phpbench/phpbench: PHP Benchmarking framework

Repository navigation

phpbench
Public

About

PHP Benchmarking framework

Topics

benchmark-framework benchmarking performance performance-testing

Resources

Readme MIT license Activity Custom properties

Stars

2.0k stars

Watchers

29 watching

Forks

132 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


1,509 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.github .github    
bin bin    
docs docs    
examples examples    
extensions/ xdebug extensions/ xdebug    
lib lib    
phpstan phpstan    
templates/ html templates/ html    
tests tests    
.gitattributes .gitattributes    
.gitignore .gitignore    
.php-cs-fixer.dist.php .php-cs-fixer.dist.php    
.readthedocs.yml .readthedocs.yml    
CHANGELOG.md CHANGELOG.md    
LICENSE LICENSE    
README.md README.md    
box.json.dist box.json.dist    
box.json.gh-release box.json.gh-release    
compose.yaml compose.yaml    
composer.json composer.json    
flake.lock flake.lock    
flake.nix flake.nix    
phpbench.json phpbench.json    
phpbench.schema.json phpbench.schema.json    
phpstan-baseline.neon phpstan-baseline.neon    
phpstan.neon.dist phpstan.neon.dist    
phpunit.xml.dist phpunit.xml.dist    
rector.php rector.php    

Repository files navigation

PHPBench is a benchmark runner for PHP analogous to PHPUnit but for performance rather than correctness.

Features include:

  • 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.

Installation

composer require phpbench/phpbench --dev

See the installation instructions for more options.

Documentation

Documentation is hosted on readthedocs .

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:

Aggregated report:

Blinken logger:

HTML Bar Chart:

Console Bar Chart:

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.

About

PHP Benchmarking framework

Topics

benchmark-framework benchmarking performance performance-testing

Resources

Readme MIT license Activity Custom properties

Stars

2.0k stars

Watchers

29 watching

Forks

132 forks Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages