- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkAnd8Parallel (0.31 sec)
-
src/internal/runtime/atomic/bench_test.go
} } func BenchmarkAnd(b *testing.B) { var x [128]uint32 // give x its own cache line sink = &x for i := 0; i < b.N; i++ { atomic.And(&x[63], uint32(i)) } } func BenchmarkAnd8Parallel(b *testing.B) { var x [512]uint8 // give byte its own cache line sink = &x b.RunParallel(func(pb *testing.PB) { i := uint8(0) for pb.Next() { atomic.And8(&x[255], i) i++ } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 3.2K bytes - Viewed (0)