- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for benchmarkSwitchType (0.14 sec)
-
src/cmd/compile/internal/test/switch_test.go
n += 7 case "foo7777777": n += 8 } } sink = n } func BenchmarkSwitchTypePredictable(b *testing.B) { benchmarkSwitchType(b, true) } func BenchmarkSwitchTypeUnpredictable(b *testing.B) { benchmarkSwitchType(b, false) } func benchmarkSwitchType(b *testing.B, predictable bool) { a := []any{ int8(1), int16(2), int32(3), int64(4), uint8(5), uint16(6),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 15:42:30 UTC 2023 - 4.2K bytes - Viewed (0)