Skip to content

Commit 5aaf15d

Browse files
author
Mykyta Zotov
committed
benchmark: update InitialCacheRangeAfterRebalance to use CacheCoefficientSize for expansion
1 parent 9be1cb1 commit 5aaf15d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/SlidingWindowCache.Benchmarks/Benchmarks/RebalanceFlowBenchmarks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class RebalanceFlowBenchmarks
5252
Intervals.NET.Factories.Range.Closed<int>(InitialStart, InitialEnd);
5353

5454
private Range<int> InitialCacheRangeAfterRebalance => InitialCacheRange
55-
.ExpandByRatio(_domain, 1, 1);
55+
.ExpandByRatio(_domain, CacheCoefficientSize, CacheCoefficientSize);
5656

5757
private Range<int> PartialHitRange => InitialCacheRangeAfterRebalance
5858
.Shift(_domain, InitialCacheRangeAfterRebalance.Span(_domain).Value / 2);

0 commit comments

Comments
 (0)