MCPcopy Create free account
hub / github.com/Edgio/vflow / BenchmarkSFDecode

Function BenchmarkSFDecode

sflow/decoder_test.go:234–241  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

232}
233
234func BenchmarkSFDecode(b *testing.B) {
235 filter := []uint32{DataCounterSample}
236 for i := 0; i < b.N; i++ {
237 reader := bytes.NewReader(TestsFlowRawPacket)
238 d := NewSFDecoder(reader, filter)
239 d.SFDecode()
240 }
241}

Callers

nothing calls this directly

Calls 2

SFDecodeMethod · 0.95
NewSFDecoderFunction · 0.85

Tested by

no test coverage detected