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

Method Throughput

bench/bench.go:155–157  ·  view source on GitHub ↗

Throughput of bytes per second

()

Source from the content-addressed store, hash-verified

153
154// Throughput of bytes per second
155func (s *Sample) Throughput() float64 {
156 return float64(s.MsgBytes) / s.Duration().Seconds()
157}
158
159// Rate of messages in the job per second
160func (s *Sample) Rate() int64 {

Callers 4

StringMethod · 0.95
TestThoughputFunction · 0.80
TestGroupThoughputFunction · 0.80
CSVMethod · 0.80

Calls 2

DurationMethod · 0.95
SecondsMethod · 0.80

Tested by 2

TestThoughputFunction · 0.64
TestGroupThoughputFunction · 0.64