@Benchmark
  @BenchmarkMode(Mode.AverageTime)
  @OutputTimeUnit(TimeUnit.NANOSECONDS)
  public Span addLink(Data data) {
    Span span = data.linkSpan;
    for (int i = 0; i < data.size; i++) {
      span.addLink(data.links[i]);
    }
    return span;
  }
@ Benchmark @ BenchmarkMode ( Mode . AverageTime ) @ OutputTimeUnit ( TimeUnit . NANOSECONDS ) public Span addLink ( Data data ) { Span span = data . linkSpan ; for ( int i = 0 ; i < data . size ; i ++ ) { span . addLink ( data . links [ i ] ) ; } return span ; }
Add links.