Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jpcaparas/phpbench-example
https://github.com/jpcaparas/phpbench-example
Last synced: about 10 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/jpcaparas/phpbench-example
- Owner: jpcaparas
- Created: 2023-08-22T08:24:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-22T08:41:46.000Z (over 1 year ago)
- Last Synced: 2023-08-22T10:11:03.579Z (over 1 year ago)
- Language: PHP
- Size: 165 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Overview
An example project that benchmarks the performance of functions and methods using [PHPBench](https://github.com/phpbench/phpbench).
## Usage
Install dependencies
composer install
Run all the benchmarks
vendor/bin/phpbench run tests/Benchmarks --report=aggregate
Run a single benchmark case
vendor/bin/phpbench run tests/Benchmarks/StringBench.php --report=aggregate
## Things to keep in mind
- Stability can be inferred from rstdev (relative standard deviation) , with 0% being the best and anything above 2% should be treated as suspicious.
## References
- [Quick start guide](https://phpbench.readthedocs.io/en/latest/quick-start.html)