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

Function TestThoughput

bench/benchlib_test.go:68–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

66}
67
68func TestThoughput(t *testing.T) {
69 s := millionMessagesSecondSample(60)
70 if s.Throughput() != Million*MsgSize {
71 t.Fatalf("Expected throughput at %d million bytes/sec", MsgSize)
72 }
73}
74
75func TestStrings(t *testing.T) {
76 s := millionMessagesSecondSample(60)

Callers

nothing calls this directly

Calls 3

ThroughputMethod · 0.80
FatalfMethod · 0.80

Tested by

no test coverage detected