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: about 2 months ago
JSON representation

Personal repo to collect php benchmarks

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.