- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkSimultaneousAfterFunc1000 (0.38 sec)
-
src/time/sleep_test.go
} }) }) b.Run("impl=func", func(b *testing.B) { benchmark(b, func(pb *testing.PB) { for pb.Next() { newTimerFunc(1 * Second).Stop() } }) }) } func BenchmarkSimultaneousAfterFunc1000(b *testing.B) { benchmark(b, func(pb *testing.PB) { for pb.Next() { n := 1000 var wg sync.WaitGroup wg.Add(n) for range n { AfterFunc(0, wg.Done) } wg.Wait()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0)