wandu / fastelper
Fast Helper Assembly.
Installs: 1 253
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.5.0
- psr/http-message: ^1
Requires (Dev)
- devster/ubench: ^1.2
- mockery/mockery: 0.9.*
- phpunit/phpunit: 4.5.*
This package is not auto-updated.
Last update: 2022-04-02 05:54:00 UTC
README
Fast Helper Assembly.
Array
array_unique_intersect
run php benchmarkes/array_unique_intersect.php
file.
first one is array_values(array_intersect(($x, $y))
. second one is array_unique_intersect
(in Fastelper).
Memory Usage : 1.25Mb
Memory Peak : 1.25Mb
Run Time : 3s
Result
...
Memory Usage : 1.75Mb
Memory Peak : 1.75Mb
Run Time : 397ms
Result
...
array_unique_union
run php benchmarkes/array_unique_union.php
file.
first one is array_unique(array_merge($x, $y))
. second one is array_unique_union
(in Fastelper).
Memory Usage : 1024.00Kb
Memory Peak : 1024.00Kb
Run Time : 18ms
Result
...
Memory Usage : 1024.00Kb
Memory Peak : 1024.00Kb
Run Time : 9ms
Result
...
Contribute
- https://github.com/koojunho (
array_flip
idea)