- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkFastrandHashiter (0.37 sec)
-
src/runtime/rand_test.go
for pb.Next() { Fastrand() } }) } 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++ { m[i] = i } b.RunParallel(func(pb *testing.PB) { for pb.Next() { for range m { break } } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 23:44:31 UTC 2023 - 2K bytes - Viewed (0)