Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for BenchmarkCallClosure4 (0.13 sec)

  1. src/runtime/closure_test.go

    }
    
    func BenchmarkCallClosure3(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		ss = addr1(i)
    	}
    }
    
    func addr2() (x int, p *int) {
    	return 0, func() *int { return &x }()
    }
    
    func BenchmarkCallClosure4(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		_, ss = addr2()
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 17 09:45:44 UTC 2020
    - 937 bytes
    - Viewed (0)
Back to top