Javadoc.
()
| 58 | * Javadoc. |
| 59 | */ |
| 60 | @Benchmark |
| 61 | @BenchmarkMode(Mode.SampleTime) |
| 62 | @OutputTimeUnit(TimeUnit.NANOSECONDS) |
| 63 | public Attributes chain() { |
| 64 | Attributes attr = base; |
| 65 | for (int i = 0; i < iterations; i++) { |
| 66 | attr = attr.toBuilder().set(keys[i], new Object()).build(); |
| 67 | } |
| 68 | return attr; |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Javadoc. |