Skip to content

Commit

Permalink
update benchmark for substitutions (#1014)
Browse files Browse the repository at this point in the history
Fix variable name to something that is in the sample map.
  • Loading branch information
brharrington authored Jan 4, 2023
1 parent 2ffdc47 commit b1fe133
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ static String substituteString(String pattern, Map<String, String> vars) {

@Benchmark
public void customReplaceMatch(Blackhole bh) {
bh.consume(MappingExpr.substitute("{variable}", VARS));
bh.consume(MappingExpr.substitute("{keyspace}", VARS));
}

@Benchmark
Expand All @@ -93,7 +93,7 @@ public void customReplaceNoMatch(Blackhole bh) {

@Benchmark
public void stringReplaceMatch(Blackhole bh) {
bh.consume(substituteString("{variable}", VARS));
bh.consume(substituteString("{keyspace}", VARS));
}

@Benchmark
Expand Down

0 comments on commit b1fe133

Please sign in to comment.