Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkSwapCollision (0.27 sec)

  1. src/sync/map_bench_test.go

    			m.LoadOrStore(0, 0)
    		},
    
    		perG: func(b *testing.B, pb *testing.PB, i int, m mapInterface) {
    			for ; pb.Next(); i++ {
    				m.Delete(0)
    			}
    		},
    	})
    }
    
    func BenchmarkSwapCollision(b *testing.B) {
    	benchMap(b, bench{
    		setup: func(_ *testing.B, m mapInterface) {
    			m.LoadOrStore(0, 0)
    		},
    
    		perG: func(b *testing.B, pb *testing.PB, i int, m mapInterface) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 01 15:34:22 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top