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

Method String

bench/bench.go:164–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

162}
163
164func (s *Sample) String() string {
165 rate := commaFormat(s.Rate())
166 throughput := HumanBytes(s.Throughput(), false)
167 return fmt.Sprintf("%s msgs/sec ~ %s/sec", rate, throughput)
168}
169
170// Duration that the sample was active
171func (s *Sample) Duration() time.Duration {

Callers 3

TestStringsFunction · 0.45
CSVMethod · 0.45
ReportMethod · 0.45

Calls 4

RateMethod · 0.95
ThroughputMethod · 0.95
commaFormatFunction · 0.85
HumanBytesFunction · 0.85

Tested by 1

TestStringsFunction · 0.36