Re: Intel nehalem crc32 for URI hashing (and Keep-Alive)

2009-12-21 Thread Willy Tarreau
Hi Dormando, On Sun, Dec 20, 2009 at 05:16:57PM -0800, dormando wrote: > Hey, > > Attached, and linked here: > http://consoleninja.net/p/haproxy_intel_hash.diff > ... is a patch to HAProxy 1.3.22 that uses intel's nehalem hardware CRC32 > instruction for the URI hashing. > > I did some tests her

Re: Intel nehalem crc32 for URI hashing (and Keep-Alive)

2009-12-20 Thread dormando
> I did some tests here: > http://dormando.livejournal.com/522027.html > With this bench tool: > http://consoleninja.net/p/intel_hash_bench.c > ... which I hadn't even compiled with -O2 during my tests. For what it's worth, compiled with -O2: haproxy, without extra tests: 0m16.883s (though it wav

Intel nehalem crc32 for URI hashing (and Keep-Alive)

2009-12-20 Thread dormando
Hey, Attached, and linked here: http://consoleninja.net/p/haproxy_intel_hash.diff ... is a patch to HAProxy 1.3.22 that uses intel's nehalem hardware CRC32 instruction for the URI hashing. I did some tests here: http://dormando.livejournal.com/522027.html With this bench tool: http://consoleninja