StringMatchingPrefix
com.netflix.atlas.core.util.StringMatchingPrefix
class StringMatchingPrefix
Sanity check prefix matching and the benefits of short ciruiting with a startsWith check before falling back to the regex matcher.
> run -wi 10 -i 10 -f1 -t1 .*StringMatchingPrefix.*
[info] Benchmark Mode Cnt Score Error Units
[info] StringMatchingPrefix.matcher thrpt 10 10314.028 ± 191.544 ops/s
[info] StringMatchingPrefix.regex thrpt 10 3431.614 ± 350.880 ops/s
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article