MCPcopy Create free account
hub / github.com/grpc/grpc-java / chain

Method chain

api/src/jmh/java/io/grpc/AttributesBenchmark.java:60–69  ·  view source on GitHub ↗

Javadoc.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

toBuilderMethod · 0.95
buildMethod · 0.65
setMethod · 0.65

Tested by

no test coverage detected