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

Method setUp

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

Javadoc.

()

Source from the content-addressed store, hash-verified

42 * Javadoc.
43 */
44 @Setup
45 @SuppressWarnings({"unchecked", "rawtypes"})
46 public void setUp() {
47 keys = new Attributes.Key[iterations];
48 for (int i = 0; i < iterations; i++) {
49 keys[i] = Attributes.Key.create("any");
50 withValue = withValue.toBuilder().set(keys[i], "yes").build();
51 }
52 }
53
54 @Param({"1", "2", "10"})
55 public int iterations;

Callers

nothing calls this directly

Calls 4

createMethod · 0.65
buildMethod · 0.65
setMethod · 0.65
toBuilderMethod · 0.45

Tested by

no test coverage detected