8 keywords · 20 000 characters · no match · StringComparison.Ordinal
loop of text.Contains
4.19 µs
reads 160 000 characters
ContainsAny(searchValues)
0.85 µs
4.9 times faster
40 keywords · 20 000 characters · no match · StringComparison.Ordinal
loop of text.Contains
21.79 µs
reads 800 000 characters
ContainsAny(searchValues)
26.79 µs
23% slower