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 965d2e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/wrr/wrr_test.go
Expand Up @@ -152,7 +152,7 @@ func BenchmarkRandomWRRNext(b *testing.B) {
itemsNum := 100
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 965d2e0

Please sign in to comment.