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

Function NewSampleGroup

bench/bench.go:181–185  ·  view source on GitHub ↗

NewSampleGroup initializer

()

Source from the content-addressed store, hash-verified

179
180// NewSampleGroup initializer
181func NewSampleGroup() *SampleGroup {
182 s := new(SampleGroup)
183 s.Samples = make([]*Sample, 0)
184 return s
185}
186
187// Statistics information of the sample group (min, average, max and standard deviation)
188func (sg *SampleGroup) Statistics() string {

Callers 8

TestGroupDurationFunction · 0.85
TestGroupSecondsFunction · 0.85
TestGroupRateFunction · 0.85
TestGroupThoughputFunction · 0.85
TestMinMaxRateFunction · 0.85
TestAvgRateFunction · 0.85
TestStdDevFunction · 0.85
NewBenchmarkFunction · 0.85

Calls

no outgoing calls

Tested by 7

TestGroupDurationFunction · 0.68
TestGroupSecondsFunction · 0.68
TestGroupRateFunction · 0.68
TestGroupThoughputFunction · 0.68
TestMinMaxRateFunction · 0.68
TestAvgRateFunction · 0.68
TestStdDevFunction · 0.68