- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkCompareAndSwapNoExistingKey (0.2 sec)
-
src/sync/map_bench_test.go
for pb.Next() { if m.CompareAndSwap(0, 0, 42) { m.CompareAndSwap(0, 42, 0) } } }, }) } func BenchmarkCompareAndSwapNoExistingKey(b *testing.B) { benchMap(b, bench{ perG: func(b *testing.B, pb *testing.PB, i int, m mapInterface) { for ; pb.Next(); i++ { if m.CompareAndSwap(i, 0, 0) { m.Delete(i) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 01 15:34:22 UTC 2024 - 11.5K bytes - Viewed (0)