2 ms·
Because it caches (http://gwan.com/faq#cache http://gwan.com/faq#cache) response under high concurrencies. Try to benchmark this code: #include "gwan.h" // G
by pibi 14y ago
Because it caches (http://gwan.com/faq#cache http://gwan.com/faq#cache) response under high concurrencies. Try to benchmark this code:
#include "gwan.h" // G-WAN exported functions
int count=0;
int main(int argc, char *argv[])
{
if (!count) printf("New Counter!\n");
xbuf_xcat(get_reply(argv), "Hello World %d",count++);
return 200; // return an HTTP code (200:'OK')
}
- FooBarWidget 14y agoWow, I didn't know that. I certainly did not expect to find that information in the FAQ. In fact this is the first time I've heard of a web server doing that. So was the benchmark the author posted with microcaching turned on? While it's a legit way to reduce the load in real-world situations, it feels a little like cheating when used in a benchmark.