Skip to content

Commit c923194

Browse files
committed
Adding missing size parameters tp benchmark
1 parent 6d035cc commit c923194

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dd-trace-core/src/jmh/java/datadog/trace/common/writer/ddagent/Utf8Benchmark.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static final byte[] tagUtf8_nocache() {
7979
return tag.getBytes(StandardCharsets.UTF_8);
8080
}
8181

82-
static final SimpleUtf8Cache TAG_CACHE = new SimpleUtf8Cache();
82+
static final SimpleUtf8Cache TAG_CACHE = new SimpleUtf8Cache(128);
8383

8484
@Benchmark
8585
public static final byte[] tagUtf8_w_cache() {
@@ -102,7 +102,7 @@ public static final void valueUtf8_baseline(Blackhole bh) {
102102
}
103103
}
104104

105-
static final GenerationalUtf8Cache VALUE_CACHE = new GenerationalUtf8Cache(128);
105+
static final GenerationalUtf8Cache VALUE_CACHE = new GenerationalUtf8Cache(64, 128);
106106

107107
@Benchmark
108108
public static final void valueUtf8_cache_generational(Blackhole bh) {

0 commit comments

Comments
 (0)