Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)