@ Benchmark @ BenchmarkMode ( Mode . SampleTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public Span addAnnotation ( Data data ) { data . span . addAnnotation ( ANNOTATION_DESCRIPTION ) ; return data . span ; }
This benchmark attempts to measure performance of adding an annotation to the span .