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

Method Statistics

bench/bench.go:188–190  ·  view source on GitHub ↗

Statistics information of the sample group (min, average, max and standard deviation)

()

Source from the content-addressed store, hash-verified

186
187// Statistics information of the sample group (min, average, max and standard deviation)
188func (sg *SampleGroup) Statistics() string {
189 return fmt.Sprintf("min %s | avg %s | max %s | stddev %s msgs", commaFormat(sg.MinRate()), commaFormat(sg.AvgRate()), commaFormat(sg.MaxRate()), commaFormat(int64(sg.StdDev())))
190}
191
192// MinRate returns the smallest message rate in the SampleGroup
193func (sg *SampleGroup) MinRate() int64 {

Callers 1

ReportMethod · 0.80

Calls 5

MinRateMethod · 0.95
AvgRateMethod · 0.95
MaxRateMethod · 0.95
StdDevMethod · 0.95
commaFormatFunction · 0.85

Tested by

no test coverage detected