3 # Test using ApacheBench against an HTTP server with lots of idle clients
16 my $socket = new IO::Socket::INET (
17 PeerAddr => '127.0.0.1',
22 push @CLIENT, $socket;
25 GetOptions("baseline" => \$BASELINE, "idle=i" => \$NCLIENT) or die;
27 for (my $i = 0; $i < $NCLIENT; $i++) {
30 print "====> Created $NCLIENT idle connections <=====\n";
32 system "ab -n 5000 -c 500 http://localhost:8080/";