๐Ÿ“ฆ anlutro / phpbench

UNMAINTAINED! Check out polyfractal's Athletic instead

โ˜… 3 stars โ‘‚ 0 forks ๐Ÿ‘ 3 watching
๐Ÿ“ฅ Clone https://github.com/anlutro/phpbench.git
HTTPS git clone https://github.com/anlutro/phpbench.git
SSH git clone git@github.com:anlutro/phpbench.git
CLI gh repo clone anlutro/phpbench
Andreas Lutro Andreas Lutro add setUp/tearDown stuff e9448ec 11 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ bench
๐Ÿ“ bin
๐Ÿ“ src
๐Ÿ“ tests
๐Ÿ“„ .gitignore
๐Ÿ“„ .travis.yml
๐Ÿ“„ composer.json
๐Ÿ“„ CONTRIBUTING.md
๐Ÿ“„ phpunit.xml
๐Ÿ“„ README.md
๐Ÿ“„ README.md

PHPBench Build Status

PHP Benchmarking Framework

In early development stages. Nothing to be considered stable.

Inspired by PHPUnit, aimed to provide a simple way to measure PHP code's performance.

Usage

Install the package via composer and run ./vendor/bin/phpbench. This file scans {current working directory]/bench/ for files ending in Benchmark.php (classes must be named the same as the file) and runs all public methods beginning with "bench", providing output on the time it took.

You can control the number of iterations yourself by doing a for loop or use an annotation as shown in the example.

Contact

Open an issue on GitHub if you have any problems or suggestions.

License

The contents of this repository is released under the MIT license.