https://github.com/jbroadway/bench
A single-method PHP 5.3+ benchmarking utility
https://github.com/jbroadway/bench
Last synced: about 2 months ago
JSON representation
A single-method PHP 5.3+ benchmarking utility
- Host: GitHub
- URL: https://github.com/jbroadway/bench
- Owner: jbroadway
- Created: 2012-02-16T15:38:55.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2012-02-16T15:42:13.000Z (about 13 years ago)
- Last Synced: 2025-01-13T12:27:20.067Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 85.9 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bench - A single-method PHP 5.3+ benchmarking utility
* Copyright: (c) 2012 Johnny Broadway
* License: http://www.opensource.org/licenses/mit-license.phpKeep track of milliseconds passed and memory usage throughout
a script's execution. Simply call `Bench::mark()` at the end
of each step (with an optional note), then call it again at
the end passing a true boolean to have it print the output.
If you also set `$raw` to true, it will output the memory
without rounding to KB.
### Usage:```php
```