Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for benchmarkMapPop (0.1 sec)

  1. src/runtime/map_test.go

    			for k := range m {
    				delete(m, k)
    				break
    			}
    		}
    	}
    }
    
    func BenchmarkMapPop100(b *testing.B)   { benchmarkMapPop(b, 100) }
    func BenchmarkMapPop1000(b *testing.B)  { benchmarkMapPop(b, 1000) }
    func BenchmarkMapPop10000(b *testing.B) { benchmarkMapPop(b, 10000) }
    
    var testNonEscapingMapVariable int = 8
    
    func TestNonEscapingMap(t *testing.T) {
    	n := testing.AllocsPerRun(1000, func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top