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
- Host: GitHub
- URL: https://github.com/romanitalian/comparatorobjectvsfunction
- Owner: romanitalian
- Created: 2018-08-03T13:02:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T13:11:53.000Z (over 7 years ago)
- Last Synced: 2025-01-16T05:29:50.328Z (12 months ago)
- Topics: benchmark, comparator, php, php7
- Language: PHP
- Size: 1000 Bytes
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```