5 ms·
The musl timings are actually incorrect, because it resets the timer on each iteration of the main loop used to count matches. So you only record the time to m
by MattPalmer1086 2y ago
The musl timings are actually incorrect, because it resets the timer on each iteration of the main loop used to count matches. So you only record the time to make the last match, not the total time. I've raised an issue on the GitHub for smart.
- rurban 2y agoOh, oh, thanks!
- MattPalmer1086 2y agoI was surprised that an algorithm from 1991 was the fastest! My first rule of benchmarking is to be suspicious of surprises!
- rurban 2y agoYes, I updated the benchmarks of the best string search algos.