Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/backendtea/benchmarks
Personal repo to collect php benchmarks
https://github.com/backendtea/benchmarks
Last synced: 17 days 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-11T16:08:07.000Z (almost 7 years ago)
- Last Synced: 2024-11-24T19:41:33.615Z (about 2 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.