- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for benchCallback (0.14 sec)
-
src/cmd/cgo/internal/test/test.go
C.handleComplexPointer8(&a[0], &a[1], &a[2], &a[3], &a[4], &a[5], &a[6], &a[7]) } }) } // Benchmark measuring overhead from Go to C and back to Go (via a callback) func benchCallback(b *testing.B) { var x = false for i := 0; i < b.N; i++ { nestedCall(func() { x = true }) } if !x { b.Fatal("nestedCall was not invoked") } } var sinkString string
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 15:50:06 UTC 2024 - 48.5K bytes - Viewed (0)