We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d035cc commit c923194Copy full SHA for c923194
1 file changed
dd-trace-core/src/jmh/java/datadog/trace/common/writer/ddagent/Utf8Benchmark.java
@@ -79,7 +79,7 @@ public static final byte[] tagUtf8_nocache() {
79
return tag.getBytes(StandardCharsets.UTF_8);
80
}
81
82
- static final SimpleUtf8Cache TAG_CACHE = new SimpleUtf8Cache();
+ static final SimpleUtf8Cache TAG_CACHE = new SimpleUtf8Cache(128);
83
84
@Benchmark
85
public static final byte[] tagUtf8_w_cache() {
@@ -102,7 +102,7 @@ public static final void valueUtf8_baseline(Blackhole bh) {
102
103
104
105
- static final GenerationalUtf8Cache VALUE_CACHE = new GenerationalUtf8Cache(128);
+ static final GenerationalUtf8Cache VALUE_CACHE = new GenerationalUtf8Cache(64, 128);
106
107
108
public static final void valueUtf8_cache_generational(Blackhole bh) {
0 commit comments