Forum

Hiawatha X Cache

Martijn
16 October 2013, 21:33
When testing Hiawatha X Cache as a 'microcache' solution I think I've found a bug, but not sure.

ab -k -n 50000 -c 5 -t 10 http://mysite.com/

AB test without x cache header gives +/- 150 req/s

AB test with header('X-Hiawatha-Cache: 1') gives +/- 150 req/s

AB test with header('X-Hiawatha-Cache: 2') gives +/- 4700 req/s


Is this behavior correct?
The difference between 1 and 2 seconds is big.

Hiawatha version: 9.2
Operating System: Debian 7 32 Bit
Hugo Leisink
17 October 2013, 00:48
In src/cache.h, I've set MIN_CGI_CACHE_TIMER to 2. Try setting it to 1.
Martijn
17 October 2013, 10:51
Ah, that explains it.
This topic has been closed.