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

Method doWrite

api/src/jmh/java/io/grpc/WriteBenchmark.java:54–63  ·  view source on GitHub ↗

Perform the write operation.

(ContextState state, Blackhole bh)

Source from the content-addressed store, hash-verified

52
53 /** Perform the write operation. */
54 @Benchmark
55 @BenchmarkMode(Mode.SampleTime)
56 @OutputTimeUnit(TimeUnit.NANOSECONDS)
57 public Context doWrite(ContextState state, Blackhole bh) {
58 return state.context.withValues(
59 state.key1, state.val,
60 state.key2, state.val,
61 state.key3, state.val,
62 state.key4, state.val);
63 }
64}

Callers

nothing calls this directly

Calls 1

withValuesMethod · 0.80

Tested by

no test coverage detected