- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkSwitch8Unpredictable (0.39 sec)
-
src/cmd/compile/internal/test/switch_test.go
// license that can be found in the LICENSE file. package test import ( "math/bits" "testing" ) func BenchmarkSwitch8Predictable(b *testing.B) { benchmarkSwitch8(b, true) } func BenchmarkSwitch8Unpredictable(b *testing.B) { benchmarkSwitch8(b, false) } func benchmarkSwitch8(b *testing.B, predictable bool) { n := 0 rng := newRNG() for i := 0; i < b.N; i++ { rng = rng.next(predictable)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 15:42:30 UTC 2023 - 4.2K bytes - Viewed (0)