Skip to content

Instantly share code, notes, and snippets.

@gcatlin
Created December 23, 2010 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcatlin/753080 to your computer and use it in GitHub Desktop.
Save gcatlin/753080 to your computer and use it in GitHub Desktop.
PHP Performance Testing
#!/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); }'
@gcatlin
Copy link
Author

gcatlin commented Dec 23, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment