- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for BenchmarkStop (0.14 sec)
-
src/time/sleep_test.go
} AfterFunc(0, f) <-c } }) } func BenchmarkAfter(b *testing.B) { benchmark(b, func(pb *testing.PB) { for pb.Next() { <-After(1) } }) } func BenchmarkStop(b *testing.B) { b.Run("impl=chan", func(b *testing.B) { benchmark(b, func(pb *testing.PB) { for pb.Next() { NewTimer(1 * Second).Stop() } }) }) b.Run("impl=func", func(b *testing.B) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 22 16:33:57 UTC 2024 - 22.5K bytes - Viewed (0)