github.com/whiteCcinn/protobuf-go@v1.0.9/internal/detrand/rand_test.go (about) 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 }