Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkAdversarialAlloc (0.22 sec)

  1. src/sync/map_bench_test.go

    				m.Range(func(_, _ any) bool { return true })
    			}
    		},
    	})
    }
    
    // BenchmarkAdversarialAlloc tests performance when we store a new value
    // immediately whenever the map is promoted to clean and otherwise load a
    // unique, missing key.
    //
    // This forces the Load calls to always acquire the map's mutex.
    func BenchmarkAdversarialAlloc(b *testing.B) {
    	benchMap(b, bench{
    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