Benchmarking string functions
Just in case someone will ever need to benchmark glibc string routines, I hacked together a simple framework for that, strbench.
In SUSE, we carry some ancient AMD-provided patches that replace strlen(), memcmp(), strcmp() and strncmp() on x86_64 with different implementation, in the last glibc update to 2.11 I have hoped to get rid of the AMD patch finally, but the benchmark have shown that in fact glibc-2.11 has quite massive performance regression here…
nice tutorial. thank your for share your code