Skip to content

Commit 5445d58

Browse files
committed
roachtest: clarify cdc scan rate calculation
1 parent 8810f99 commit 5445d58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cmd/roachtest/tests/cdc_bench.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ func registerCDCBench(r registry.Registry) {
7878
if len(histograms.Summaries) != 1 {
7979
return nil, errors.Errorf("expected exactly 1 histogram summary, got %d", len(histograms.Summaries))
8080
}
81+
// CDC scan tests export the scan rate (rows per second) as a single
82+
// duration value in nanoseconds, set as the upper bound of the histogram.
83+
// This convoluted scheme was cargo-culted from the restore test.
8184
scanRate = float64(histograms.Summaries[0].HighestTrackableValue) / float64(time.Second)
8285

8386
// Add scan rate metric (higher is better)

0 commit comments

Comments
 (0)