- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkBitSetConst (0.22 sec)
-
src/cmd/compile/internal/test/bench_test.go
func BenchmarkBitToggle(b *testing.B) { const N = 64 * 8 a := make([]uint64, N/64) for i := 0; i < b.N; i++ { for j := uint64(0); j < N; j++ { a[j/64] ^= 1 << (j % 64) } } } func BenchmarkBitSetConst(b *testing.B) { const N = 64 a := make([]uint64, N) for i := 0; i < b.N; i++ { for j := range a { a[j] |= 1 << 37 } } } func BenchmarkBitClearConst(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 08 03:27:59 UTC 2021 - 2.1K bytes - Viewed (0)