Skip to content

Commit

Permalink
do not recommend ab for benchmarking
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 2, 2013
1 parent 084419c commit 3f33a80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/microhttpd.pl
Expand Up @@ -25,7 +25,7 @@

# Write a minimal HTTP response
# (the "Hello World!" message has been optimized away!)
$stream->write("HTTP/1.1 200 OK\x0d\x0a"
$stream->write("HTTP/1.1 200 OK\x0d\x0aContent-Length: 0\x0d\x0a"
. "Connection: keep-alive\x0d\x0a\x0d\x0a");
}
}
Expand All @@ -36,7 +36,7 @@

print <<'EOF';
Starting server on port 8080.
Try something like "ab -c 30 -n 100000 -k http://127.0.0.1:8080/" for testing.
Try something like "wrk -c 100 -d 10s http://127.0.0.1:8080/" for testing.
On a MacBook Air this results in about 18k req/s.
EOF

Expand Down

0 comments on commit 3f33a80

Please sign in to comment.