summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/google/gopacket/macs/benchmark_test.go
blob: 33af5c263fecee5d93d0e66617a424b8ac8d2851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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]
	}
}