gosbench
gosbench copied to clipboard
object is wrong for fuc EvaluateDistribution
Describe the bug
When config objects number_distribution: sequential
and number_min: 1
, only 1 object writes many times
To Reproduce
Steps to reproduce the behavior:
Only fill 1 op when number_distribution
is sequential
from number_min
value 1
https://github.com/mulbc/gosbench/blob/d9e82dc1c4edac1bd5655e7f1354696c87026e29/worker/main.go#L258
Expected behavior
Obj name should increment from number_min
to number_max
Func common.EvaluateDistribution shouldn't means bucketCount and bucket should not start from uint64(0).
fillWorkqueue
to fill works in the test in advance and then workUntilTimeout
seems logically inaccurate