Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.