- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkIssue18138 (0.29 sec)
-
src/runtime/stack_test.go
c := make(chan bool) for i := 0; i < b.N; i++ { go func() { var s stkobjT Sum(100000, &s) c <- true }() <-c } } func BenchmarkIssue18138(b *testing.B) { // Channel with N "can run a goroutine" tokens const N = 10 c := make(chan []byte, N) for i := 0; i < N; i++ { c <- make([]byte, 1) } for i := 0; i < b.N; i++ {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jun 14 00:03:57 UTC 2023 - 23.1K bytes - Viewed (0)