Created
December 23, 2010 14:58
-
-
Save gcatlin/753080 to your computer and use it in GitHub Desktop.
PHP Performance Testing
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
#!/bin/bash | |
php -d implicit_flush=off -r "$1"'; for ($i=0; $i<5; $i++) { $t=microtime(true); for ($j=0; $j<100000; $j++) { '"$2"'; } printf("%.6f\n", microtime(true)-$t); }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stolen from http://pastie.org/638732