StringMatchingPrefix

com.netflix.atlas.core.util.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 Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def matcher(bh: Blackhole): Unit
def regex(bh: Blackhole): Unit