Skip to content

Commit

Permalink
Amend bechmark names
Browse files Browse the repository at this point in the history
  • Loading branch information
Akshay Shah committed Dec 8, 2016
1 parent ed5d091 commit 257bb26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions timers/timers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,15 +312,15 @@ func scheduleAndCancelStd(b *testing.B) {
})
}

func BenchmarkTimerScheduleAndCancelNoHeap(b *testing.B) {
func BenchmarkScheduleAndCancelWheelNoHeap(b *testing.B) {
w := NewWheel(5*time.Millisecond, 2*time.Minute)
defer w.Stop()

scheduleAndCancel(b, w)
b.StopTimer()
}

func BenchmarkTimerScheduleAndCancelWithHeap(b *testing.B) {
func BenchmarkScheduleAndCancelWheelWithHeap(b *testing.B) {
w := NewWheel(5*time.Millisecond, 2*time.Minute)
defer w.Stop()

Expand Down Expand Up @@ -357,7 +357,7 @@ func BenchmarkScheduleAndCancelStandardLibraryWithHeap(b *testing.B) {
}
}

func BenchmarkTimerWorkThread(b *testing.B) {
func BenchmarkWheelWorkThread(b *testing.B) {
// Note that this benchmark includes 1ms of wait time; attempting to reduce
// this by ticking faster is counterproductive, since we start missing
// ticks and then need to lock more buckets to catch up.
Expand All @@ -373,7 +373,7 @@ func BenchmarkTimerWorkThread(b *testing.B) {
}
}

func BenchmarkTimerExpiry(b *testing.B) {
func BenchmarkWheelTimerExpiry(b *testing.B) {
w, c := fakeWheel(time.Millisecond)
defer w.Stop()
var wg sync.WaitGroup
Expand Down

0 comments on commit 257bb26

Please sign in to comment.