Skip to content

Commit

Permalink
wrr: update BenchmarkRandomWRRNext
Browse files Browse the repository at this point in the history
  • Loading branch information
huangchong94 committed Dec 23, 2021
1 parent b3c355f commit ca75ed0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/wrr/wrr_test.go
Expand Up @@ -149,10 +149,10 @@ func BenchmarkRandomWRRNext(b *testing.B) {
})
}

itemsNum := 100
itemsNum := 200
heavyWeight := int64(itemsNum)
lightWeight := int64(1)
heavyIndices := []int{0, 49, 99}
heavyIndices := []int{0, itemsNum / 2, itemsNum - 1}
for _, heavyIndex := range heavyIndices {
b.Run("skew-weights-heavy-index-"+strconv.Itoa(heavyIndex), func(b *testing.B) {
w := NewRandom()
Expand Down

0 comments on commit ca75ed0

Please sign in to comment.