99import org .openjdk .jmh .annotations .Warmup ;
1010
1111/**
12- * In contrast to java.util.Objects.hash, datadog.util.Objects .hash has overrides for different
12+ * In contrast to java.util.Objects.hash, datadog.util.HashingUtils .hash has overrides for different
1313 * parameter counts that allow most callers to avoid calling the var-arg version. This avoids the
1414 * common situation where the JIT's escape analysis is unable to elide the var-arg array allocation.
1515 *
@@ -95,7 +95,7 @@ static <T> T init(Supplier<T> supplier) {
9595
9696 @ Benchmark
9797 public int hash2 () {
98- return datadog .trace .util .Objects .hash (str0 , str1 );
98+ return datadog .trace .util .HashingUtils .hash (str0 , str1 );
9999 }
100100
101101 @ Benchmark
@@ -105,7 +105,7 @@ public int hash2_varargs() {
105105
106106 @ Benchmark
107107 public int hash3 () {
108- return datadog .trace .util .Objects .hash (str0 , str1 , str2 );
108+ return datadog .trace .util .HashingUtils .hash (str0 , str1 , str2 );
109109 }
110110
111111 @ Benchmark
@@ -115,7 +115,7 @@ public int hash3_varags() {
115115
116116 @ Benchmark
117117 public int hash4 () {
118- return datadog .trace .util .Objects .hash (str0 , str1 , str2 , str3 );
118+ return datadog .trace .util .HashingUtils .hash (str0 , str1 , str2 , str3 );
119119 }
120120
121121 @ Benchmark
@@ -125,7 +125,7 @@ public int hash4_varargs() {
125125
126126 @ Benchmark
127127 public int hash5 () {
128- return datadog .trace .util .Objects .hash (str0 , str1 , str2 , str3 , str4 );
128+ return datadog .trace .util .HashingUtils .hash (str0 , str1 , str2 , str3 , str4 );
129129 }
130130
131131 @ Benchmark
0 commit comments