wandu/fastelper

此包已废弃,不再维护。未建议替代包。

快速助手组件。

v0.1.0 2015-12-11 08:38 UTC

This package is not auto-updated.

Last update: 2022-04-02 05:54:00 UTC


README

Latest Stable Version Latest Unstable Version Total Downloads License

快速助手组件。

数组

array_unique_intersect

运行 php benchmarkes/array_unique_intersect.php 文件。第一个是 array_values(array_intersect(($x, $y))。第二个是 array_unique_intersect(在 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

运行 php benchmarkes/array_unique_union.php 文件。第一个是 array_unique(array_merge($x, $y))。第二个是 array_unique_union(在 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
...

贡献