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

https://github.com/romanitalian/comparatorobjectvsfunction

Compare time and memory for usage Object and Function for sort array
https://github.com/romanitalian/comparatorobjectvsfunction

benchmark comparator php php7

Last synced: 10 months ago
JSON representation

Compare time and memory for usage Object and Function for sort array

Awesome Lists containing this project

README

          

### Time execution and memory usage:

```
Comparator.php
time execution: 0.0056660175323486
memory usage: 2097152

ComparatorFunction.php
time execution: 0.014033079147339
memory usage: 2097152
```

```
$ php -v
PHP 7.0.30 (cli) (built: Apr 26 2018 13:29:58) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.6.0, Copyright (c) 2002-2018, by Derick Rethans
```