3 ms·
> firstly, GNU memmem is slower than memchr::memmem::Finder, Not only slower than the rust version, also slower than most other >200 string search functions. W
by rurban 3y ago
> firstly, GNU memmem is slower than memchr::memmem::Finder,
Not only slower than the rust version, also slower than most other >200 string search functions. Whilst musl has the fastest string search function for less than 32 substring chars.
See https://rurban.github.io/smart/results/all/rand2.html https://rurban.github.io/smart/results/all/rand2.html with libc1 being GNU libc memmem() and musl1 being musl's memmem().