Joe Tsai | 492a476 | 2018-11-26 17:16:32 -0800 | [diff] [blame^] | 1 | // Copyright 2018 The Go Authors. All rights reserved. |
2 | // Use of this source code is governed by a BSD-style | ||||
3 | // license that can be found in the LICENSE file. | ||||
4 | |||||
5 | package detrand | ||||
6 | |||||
7 | import "testing" | ||||
8 | |||||
9 | func Benchmark(b *testing.B) { | ||||
10 | b.ReportAllocs() | ||||
11 | for i := 0; i < b.N; i++ { | ||||
12 | binaryHash() | ||||
13 | } | ||||
14 | } |