Created
August 12, 2019 21:09
-
-
Save josecanciani/042c446a7fffb6904715287b363277cc to your computer and use it in GitHub Desktop.
Performance analysis for exceptions in PHP (2)
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
$ time cat <<EOF | php | |
<?php | |
for (\$i = 0; \$i < 10000000; ++\$i) { | |
new Exception(\$i); | |
rand(\$i, \$i + 1000000); | |
} | |
EOF | |
real 0m2,824s | |
user 0m2,810s | |
sys 0m0,017s | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment