MCPcopy Index your code
hub / github.com/google/gopacket / BenchmarkDecodeFuncCallOverheadDecoderCall

Function BenchmarkDecodeFuncCallOverheadDecoderCall

layers/decode_test.go:333–340  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

331}
332
333func BenchmarkDecodeFuncCallOverheadDecoderCall(b *testing.B) {
334 d := gopacket.DecodeFunc(testDecoder)
335 var data []byte
336 var pb gopacket.PacketBuilder
337 for i := 0; i < b.N; i++ {
338 _ = d.Decode(data, pb)
339 }
340}
341
342func BenchmarkDecodeFuncCallOverheadArrayCall(b *testing.B) {
343 EthernetTypeMetadata[1] = EnumMetadata{DecodeWith: gopacket.DecodeFunc(testDecoder)}

Callers

nothing calls this directly

Calls 2

DecodeFuncFuncType · 0.92
DecodeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…