Download the PHP package nochso/benchmark without Composer
On this page you can find all versions of the php package nochso/benchmark. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nochso/benchmark
More information about nochso/benchmark
Files in nochso/benchmark
Informations about the package benchmark
nochso/benchmark library
nochso/benchmark creates pretty HTML benchmarks from any closures you supply:
- Generate HTML reports including Github flavoured Markdown
- Reliably compare different algorithms
- Run tests for a minimum amount of time to ensure stable results
- Installation
- Usage
- Contributing
- History
- Credits
- License
Installation
- Install composer on Windows
- Require this package via composer:
Usage
Have a look at the example reports.
A very simple example without parameters:
This will generate and save a HTML report to folder build
by default.
Options
The Report constructor takes an optional third argument $config
:
If omitted, default options will be used. Otherwise your configuration will be merged with the defaults.
You can also change the minimum duration of tests which defaults to 1000 millseconds (1 second):
Contributing
- Open an issue if it's worth discussing.
- Fork this project on Github.
- Clone your fork:
git clone [email protected]:yourname/benchmark.git
- Don't forget to
composer update
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request on Github :)
Change log
See CHANGELOG.
Credits
License
This project is licensed under the ISC license which is MIT/GPL compatible and FSF/OSI approved:
All versions of benchmark with dependencies
cocur/slugify Version ^2.1.1
doctrine/collections Version ^1.3
cebe/markdown Version ^1.1
jralph/twig-markdown Version ^1.0
nochso/html-compress-twig Version ^1.0
symfony/finder Version ^3.0
nochso/omni Version ^0.3.8