Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/kv/kvclient/kvcoord/batch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -642,14 +642,14 @@ func BenchmarkTruncateLoop(b *testing.B) {
defer leaktest.AfterTest(b)()
defer log.Scope(b).Close(b)

rng, _ := randutil.NewTestRand()
const keyLength = 8
for _, scanDir := range []ScanDirection{Ascending, Descending} {
for _, mustPreserveOrder := range []bool{false, true} {
for _, numRequests := range []int{128, 16384} {
for _, numRanges := range []int{4, 64} {
// We'll split the whole key space into numRanges ranges
// using random numRanges-1 split points.
rng := randutil.NewTestRandWithSeed(51)
rangeSpans := makeRanges(rng, numRanges, keyLength)
if scanDir == Descending {
// Reverse all the range spans for the Descending scan
Expand Down