I'm trying to test the performance of a fairly large PHP (not earth shattering) script using ApacheBench (which I just discovered by accident today in google. ). However I am getting results that confuse me. An extract when benchmarking 30 request, concurrency 1: Complete requests : 30 Failed requests : 29 (connect:0, Length:29, Exceptions:0) Failed requests? WHAT THE? The site is up and working. Can anyone give me a helping hand and explain this? Can't find anything in google. THANKS!
What's the URL to it? I was looking for something to benchmark PHP, but never found anything (didn't look *too* hard of course). heh
ApacheBench is part of standard apache distribution - see APACHE-INSTALL-DIR/bin/ab This is a nice quick-n-dirty way to benchmark stuff to see if changes helped - was real helpful when I was fiddling with mod_perl. No ideas on the "Failed Requests" - sorry.
I start my pages (for testing) with $t1=microtime(); $t4=date('U'); PHP: and end them with $t2=microtime(); $t5=date('U'); $t6=$t5-$t4; $t3=$t2-$t1; $t7=$t6+$t3; echo "<br><strong>This HTML Page was Dynamically Generated and written Specifically for You. This page took $t7 seconds to write.</strong>\n"; PHP: