Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qfox/php-benchs
Yet another PHP benching stub
https://github.com/qfox/php-benchs
Last synced: 23 days ago
JSON representation
Yet another PHP benching stub
- Host: GitHub
- URL: https://github.com/qfox/php-benchs
- Owner: qfox
- License: mit
- Created: 2015-04-18T05:39:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-23T22:31:52.000Z (over 9 years ago)
- Last Synced: 2024-04-09T15:37:37.572Z (7 months ago)
- Language: PHP
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yet another PHP benching stub
## Installation
```
git clone https://github.com/zxqfox/php-benchs.git
composer install
```## Usage
Run `php benchit.php ./arrays-vs-arrayobjects/* -c 5000` to get some results
for 5k executions of each PHP file:
```
File | Min (ms) | Max (ms) | Avg (ms) | Total (ms)
...rays-vs-arrayobjects/arrayobjects.php | 0.10085 | 0.42105 | 0.26095 | 534.92832
./arrays-vs-arrayobjects/arrays.php | 0.09799 | 1.23811 | 0.66805 | 517.61246
```if in file `./arrays-vs-arrayobjects/arrays.php`:
```php```
and in `./arrays-vs-arrayobjects/arrayobjects.php`
```php```
## License
[The MIT License](LICENSE)