- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for benchCallback (0.25 sec)
-
src/cmd/cgo/internal/test/cgo_test.go
func BenchmarkCgoCall(b *testing.B) { benchCgoCall(b) } func BenchmarkGoString(b *testing.B) { benchGoString(b) } func BenchmarkCGoCallback(b *testing.B) { benchCallback(b) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 17 21:53:11 UTC 2023 - 6.4K bytes - Viewed (0) -
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)