https://github.com/backendtea/benchmarks
Personal repo to collect php benchmarks
https://github.com/backendtea/benchmarks
Last synced: about 2 months ago
JSON representation
Personal repo to collect php benchmarks
- Host: GitHub
- URL: https://github.com/backendtea/benchmarks
- Owner: BackEndTea
- License: mit
- Created: 2018-02-11T15:17:56.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-11T16:08:07.000Z (over 7 years ago)
- Last Synced: 2025-02-17T23:48:16.711Z (5 months ago)
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Bench Marks
## `in_array()` comparison:
```
$ vendor/bin/phpbench run benchmarks/In_Array/Small.php --report=aggregate
$ vendor/bin/phpbench run benchmarks/In_Array/Medium.php --report=aggregate
$ vendor/bin/phpbench run benchmarks/In_Array/Large.php --report=aggregate```
In all cases strict comparison is slower, the size of the array to be checked just increases the difference.