Skip to content

Commit

Permalink
sql/rowexec: run BenchmarkIndexBackfill on-disk
Browse files Browse the repository at this point in the history
Epic: none
Release note: None
  • Loading branch information
annrpom committed Jan 31, 2025
1 parent 906d5b9 commit 49e20eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/sql/rowexec/indexbackfiller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ package rowexec

import (
"context"
"path/filepath"
"testing"
"time"

Expand All @@ -18,6 +19,7 @@ import (
"github.com/cockroachdb/cockroach/pkg/sql/schemachanger/scplan"
"github.com/cockroachdb/cockroach/pkg/sql/sem/eval"
"github.com/cockroachdb/cockroach/pkg/sql/sqlerrors"
"github.com/cockroachdb/cockroach/pkg/testutils"
"github.com/cockroachdb/cockroach/pkg/testutils/serverutils"
"github.com/cockroachdb/cockroach/pkg/util/leaktest"
"github.com/cockroachdb/cockroach/pkg/util/log"
Expand Down Expand Up @@ -92,6 +94,9 @@ func BenchmarkIndexBackfill(b *testing.B) {
stopTimer := func() {}
startTimer := func() {}

dir, dirCleanupFn := testutils.TempDir(b)
defer dirCleanupFn()

srv, sqlDB, _ := serverutils.StartServer(b, base.TestServerArgs{
Knobs: base.TestingKnobs{
SQLEvalContext: &eval.TestingKnobs{
Expand Down Expand Up @@ -120,6 +125,7 @@ func BenchmarkIndexBackfill(b *testing.B) {
},
},
},
StoreSpecs: []base.StoreSpec{{InMemory: false, Path: filepath.Join(dir, "testserver")}},
})
defer srv.Stopper().Stop(ctx)

Expand Down

0 comments on commit 49e20eb

Please sign in to comment.