Change-Id: I1dbd1c5aa26f458cdac7a3f0ca974254a069311f
GitHub-Last-Rev:
da481ba7a9082a5fae5cc7c72821167d9879f54f
GitHub-Pull-Request: golang/go#66219
Reviewed-on: https://go-review.googlesource.com/c/go/+/569897
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
t.Stop()
})
})
- b.Run("impl=chan", func(b *testing.B) {
+ b.Run("impl=func", func(b *testing.B) {
benchmark(b, func(n int) {
t := newTimerFunc(Hour)
for i := 0; i < n; i++ {