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

Function BenchmarkDecodeSFlowLayerPacket1

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

Source from the content-addressed store, hash-verified

1918}
1919
1920func BenchmarkDecodeSFlowLayerPacket1(b *testing.B) {
1921 var sflow SFlowDatagram
1922 for i := 0; i < b.N; i++ {
1923 sflow.DecodeFromBytes(SFlowTestPacket1[ /*eth*/ 14+ /*ipv4*/ 20+ /*udp*/ 8:], gopacket.NilDecodeFeedback)
1924 }
1925}
1926
1927func BenchmarkDecodeSFlowLayerPacket2(b *testing.B) {
1928 var sflow SFlowDatagram

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…