Created
June 6, 2017 06:16
-
-
Save phannam1412/001888c5fd5d76ccba475dd58e57c127 to your computer and use it in GitHub Desktop.
PHP profiling
This file contains hidden or 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
$start = microtime(true); | |
$MAX = 1000000; | |
$arr = []; | |
for($a=0;$a<$MAX;$a++) $arr[] = rand(0,$MAX); | |
asort($arr); | |
print round(microtime(true) - $start,2) . 's' . PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment