curious ab result when -k option included?

Dag-Erling Smørgrav des at
Tue Jul 24 10:55:14 CEST 2007

"Monty Ree" <chulmin2 at> writes:
> When I execute ab(apache bentch) to test the varnish performance, I
> have found curious result.  If I set -k option which means Keepalive
> like below, I can't see the result.
> with -k option : Requests per second:    10.96 [#/sec] (mean)
> without -k option : Requests per second:    5302 [#/sec] (mean)
> ab -k -n 1000 -c 100
> Why this result happens? varnish doesn't support keepalive?

I see the same symptom; tcpdump shows that ab does not send a new
request after receiving each answer, but waits for the session to time
out and then reconnects.  I'm not sure if it's a bug in ab or in

Dag-Erling Smørgrav
Senior Software Developer
Linpro AS -

More information about the varnish-misc mailing list