MCPcopy
hub / github.com/nats-io/nats.go / AddSubSample

Method AddSubSample

bench/bench.go:110–112  ·  view source on GitHub ↗

AddSubSample to the benchmark

(s *Sample)

Source from the content-addressed store, hash-verified

108
109// AddSubSample to the benchmark
110func (bm *Benchmark) AddSubSample(s *Sample) {
111 bm.subChannel <- s
112}
113
114// AddPubSample to the benchmark
115func (bm *Benchmark) AddPubSample(s *Sample) {

Callers 3

TestBenchSetupFunction · 0.95
makeBenchFunction · 0.95
runSubscriberFunction · 0.80

Calls

no outgoing calls

Tested by 2

TestBenchSetupFunction · 0.76
makeBenchFunction · 0.76