StringSub

com.netflix.atlas.core.util.StringSub
class StringSub

Quick sanity check on substitute changes. Main goal is to reduce some of the allocations seen in batch use-cases.

> run -wi 10 -i 10 -f1 -t1 .*StringSub.*

Initial results:

[info] Benchmark                     Mode  Cnt        Score       Error  Units
[info] StringSub.testParsingByHand  thrpt   10  2223516.436 ± 43697.844  ops/s
[info] StringSub.testUsingRegex     thrpt   10   267252.094 ±  6066.379  ops/s

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def substitute(str: String, vars: Map[String, String]): String
def testParsingByHand(bh: Blackhole): Unit
def testUsingRegex(bh: Blackhole): Unit