- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkCallClosure3 (0.14 sec)
-
src/runtime/closure_test.go
for i := 0; i < b.N; i++ { j := i s += func() int { ss = &j return 2 }() } } func addr1(x int) *int { return func() *int { return &x }() } 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) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 17 09:45:44 UTC 2020 - 937 bytes - Viewed (0)