Skip to content

Commit bdc1859

Browse files
committed
Added some explanatory comments
1 parent 0b9f0d0 commit bdc1859

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
* "-prof gc" to check bytes / op.
1313
*
1414
* <p>Since {@link String#getBytes(java.nio.charset.Charset)} is intrinsified the caches typically
15-
* perform worse throughput wise, the benefit of the caches is to reduce allocation.
15+
* perform worse throughput wise, the benefit of the caches is to reduce allocation. * Intention of
16+
* this benchmark is to create data that roughly resembles what might be seen in a trace payload.
17+
* Tag names are quite static, tag values are mostly low cardinality, but some tag values have
18+
* infinite cardinality.
1619
*/
1720
@BenchmarkMode(Mode.Throughput)
1821
public class Utf8Benchmark {

0 commit comments

Comments
 (0)