aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/rand_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/rand_test.go')
-rw-r--r--src/runtime/rand_test.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/runtime/rand_test.go b/src/runtime/rand_test.go
index 1b84c79d24..92d07ebada 100644
--- a/src/runtime/rand_test.go
+++ b/src/runtime/rand_test.go
@@ -18,6 +18,14 @@ func BenchmarkFastrand(b *testing.B) {
})
}
+func BenchmarkFastrand64(b *testing.B) {
+ b.RunParallel(func(pb *testing.PB) {
+ for pb.Next() {
+ Fastrand64()
+ }
+ })
+}
+
func BenchmarkFastrandHashiter(b *testing.B) {
var m = make(map[int]int, 10)
for i := 0; i < 10; i++ {