cline / bench
Modern PHP benchmarking with comparisons, snapshots, and regression gates.
1.1.0
2026-03-09 03:38 UTC
Requires
- php: ^8.5.0
- nunomaduro/termwind: ^2.3
- symfony/console: ^7.4
- symfony/finder: ^7.4
Requires (Dev)
- cline/coding-standard: ^2.0.1
- pestphp/pest: ^4.0
- phpstan/phpstan: ^2.1
- rector/rector: ^2.0
- symfony/var-dumper: ^7.4.0
README
bench
bench is a modern PHP benchmarking package built around attributes,
snapshots, saved runs, calibration, process isolation, and
comparison-first reporting.
Requirements
- PHP 8.5+
Installation
composer require --dev cline/bench
Documentation
- USAGE for detailed authoring, CLI, config, and regression workflows
- CONTRIBUTING for development workflow
- CHANGELOG for released changes
Highlights
- attribute-first benchmark authoring
- built-in snapshots, saved runs, and
latestaliases - comparison tables with winners, reference gaps, reference gains, and
ops/s - regression assertions and comparison exit policies for CI
- parameterized benchmarks, groups, selectors, calibration, and process isolation
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
License
The MIT License. Please see License File for more information.