forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
86091: storage: use `RangeKeyChanged()` in `ComputeStats()` r=nicktrav a=erikgrinaker This patch makes use of `RangeKeyChanged()` in `ComputeStats()`, for more efficient processing of MVCC range tombstones. ``` name old time/op new time/op delta MVCCComputeStats_Pebble/valueSize=8/numRangeKeys=0-24 230ms ± 0% 220ms ± 1% -4.57% (p=0.008 n=5+5) MVCCComputeStats_Pebble/valueSize=8/numRangeKeys=1-24 344ms ± 1% 271ms ± 1% -21.18% (p=0.008 n=5+5) MVCCComputeStats_Pebble/valueSize=8/numRangeKeys=100-24 365ms ± 1% 293ms ± 0% -19.80% (p=0.008 n=5+5) MVCCComputeStats_Pebble/valueSize=32/numRangeKeys=0-24 162ms ± 1% 154ms ± 0% -4.92% (p=0.008 n=5+5) MVCCComputeStats_Pebble/valueSize=32/numRangeKeys=1-24 239ms ± 0% 190ms ± 0% -20.75% (p=0.008 n=5+5) MVCCComputeStats_Pebble/valueSize=32/numRangeKeys=100-24 260ms ± 1% 209ms ± 0% -19.54% (p=0.008 n=5+5) MVCCComputeStats_Pebble/valueSize=256/numRangeKeys=0-24 55.7ms ± 8% 51.0ms ± 7% ~ (p=0.095 n=5+5) MVCCComputeStats_Pebble/valueSize=256/numRangeKeys=1-24 72.8ms ± 2% 58.6ms ± 1% -19.49% (p=0.016 n=5+4) MVCCComputeStats_Pebble/valueSize=256/numRangeKeys=100-24 82.1ms ± 5% 67.9ms ± 3% -17.26% (p=0.008 n=5+5) ``` Touches cockroachdb#84544. Release note: None Co-authored-by: Erik Grinaker <[email protected]>
- Loading branch information
Showing
3 changed files
with
28 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters