diff options
Diffstat (limited to 'vendor/github.com/google/gopacket/macs/benchmark_test.go')
-rw-r--r-- | vendor/github.com/google/gopacket/macs/benchmark_test.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/vendor/github.com/google/gopacket/macs/benchmark_test.go b/vendor/github.com/google/gopacket/macs/benchmark_test.go new file mode 100644 index 0000000..33af5c2 --- /dev/null +++ b/vendor/github.com/google/gopacket/macs/benchmark_test.go @@ -0,0 +1,18 @@ +// Copyright 2012 Google, Inc. All rights reserved. +// +// Use of this source code is governed by a BSD-style license +// that can be found in the LICENSE file in the root of the source +// tree. + +package macs + +import ( + "testing" +) + +func BenchmarkCheckEthernetPrefix(b *testing.B) { + key := [3]byte{5, 5, 5} + for i := 0; i < b.N; i++ { + _ = ValidMACPrefixMap[key] + } +} |