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

Function BenchmarkDecodeOptsTemplate

ipfix/decoder_test.go:172–179  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

170}
171
172func BenchmarkDecodeOptsTemplate(b *testing.B) {
173 ip := net.ParseIP("127.0.0.1")
174 mCache := GetCache("cache.file")
175 for i := 0; i < b.N; i++ {
176 d := NewDecoder(ip, optsTpl)
177 d.Decode(mCache)
178 }
179}
180
181func TestMultiMessage(t *testing.T) {
182 ip := net.ParseIP("127.0.0.1")

Callers

nothing calls this directly

Calls 3

DecodeMethod · 0.95
GetCacheFunction · 0.70
NewDecoderFunction · 0.70

Tested by

no test coverage detected