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

Method Rate

bench/bench.go:160–162  ·  view source on GitHub ↗

Rate of messages in the job per second

()

Source from the content-addressed store, hash-verified

158
159// Rate of messages in the job per second
160func (s *Sample) Rate() int64 {
161 return int64(float64(s.JobMsgCnt) / s.Duration().Seconds())
162}
163
164func (s *Sample) String() string {
165 rate := commaFormat(s.Rate())

Callers 8

StringMethod · 0.95
TestRateFunction · 0.80
TestGroupRateFunction · 0.80
CSVMethod · 0.80
MinRateMethod · 0.80
MaxRateMethod · 0.80
AvgRateMethod · 0.80
StdDevMethod · 0.80

Calls 2

DurationMethod · 0.95
SecondsMethod · 0.80

Tested by 2

TestRateFunction · 0.64
TestGroupRateFunction · 0.64