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

Function BenchmarkDecodeTemplate

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

Source from the content-addressed store, hash-verified

161}
162
163func BenchmarkDecodeTemplate(b *testing.B) {
164 ip := net.ParseIP("127.0.0.1")
165 mCache := GetCache("cache.file")
166 for i := 0; i < b.N; i++ {
167 d := NewDecoder(ip, tpl)
168 d.Decode(mCache)
169 }
170}
171
172func BenchmarkDecodeOptsTemplate(b *testing.B) {
173 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