added support for string type
[govpp.git] / vendor / github.com / google / gopacket / macs / benchmark_test.go
1 // Copyright 2012 Google, Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style license
4 // that can be found in the LICENSE file in the root of the source
5 // tree.
6
7 package macs
8
9 import (
10         "testing"
11 )
12
13 func BenchmarkCheckEthernetPrefix(b *testing.B) {
14         key := [3]byte{5, 5, 5}
15         for i := 0; i < b.N; i++ {
16                 _ = ValidMACPrefixMap[key]
17         }
18 }