Check wheter the compiler has the option -fno-tree-loop-distribute-patterns to inhibit loop transformation to library calls and uses it on memset and memmove default implementation to avoid recursive calls.
Copy over already existing string performance tests into benchtests. Bits not related to performance measurements have been omitted.