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

Function BenchmarkDecodeSFlowLayerPacket2

layers/sflow_test.go:1927–1932  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1925}
1926
1927func BenchmarkDecodeSFlowLayerPacket2(b *testing.B) {
1928 var sflow SFlowDatagram
1929 for i := 0; i < b.N; i++ {
1930 sflow.DecodeFromBytes(SFlowTestPacket2[ /*eth*/ 14+ /*ipv4*/ 20+ /*udp*/ 8:], gopacket.NilDecodeFeedback)
1931 }
1932}

Callers

nothing calls this directly

Calls 1

DecodeFromBytesMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…