- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkChanPopular (0.13 sec)
-
src/runtime/chan_test.go
type Empty struct{} myc := make(chan Empty, runtime.GOMAXPROCS(0)) b.RunParallel(func(pb *testing.PB) { for pb.Next() { myc <- Empty{} <-myc } }) } func BenchmarkChanPopular(b *testing.B) { const n = 1000 c := make(chan bool) var a []chan bool var wg sync.WaitGroup wg.Add(n) for j := 0; j < n; j++ { d := make(chan bool) a = append(a, d)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 31 20:47:35 UTC 2023 - 23.4K bytes - Viewed (0)