rand_test.go 292 B

1234567891011121314
  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. package detrand
  5. import "testing"
  6. func Benchmark(b *testing.B) {
  7. b.ReportAllocs()
  8. for i := 0; i < b.N; i++ {
  9. binaryHash()
  10. }
  11. }