This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// https://gist.github.com/nunoveloso/1992851 | |
require_once "./nuno-array-diff.php"; | |
const FUNCS = ["array_diff", "nuno_array_diff"]; | |
// Config options | |
const ARRAY_SIZES_RANGE = [ | |
[100, 1000000], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Testing functions' performance posted in the following StackOverflow thread | |
* (codes are mostly copied from there): | |
* https://stackoverflow.com/questions/4790453 | |
* | |
* All these functions convert an array to its object variant. | |
* | |
* Also, some of the answers are omitted. Some are duplicated and some doesn't | |
* even work. Nonetheless, the functionality of these functions is not strictly |