Skip to content

Commit 7c9381c

Browse files
author
Mykyta Zotov
committed
benchmark: reduce parameter ranges in benchmark tests for improved performance and clarity
1 parent c0dd884 commit 7c9381c

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

tests/SlidingWindowCache.Benchmarks/Benchmarks/RebalanceFlowBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public class RebalanceFlowBenchmarks
3535
/// <summary>
3636
/// Requested range size - varies from small (100) to very large (1,000,000) to test rebalance scaling behavior.
3737
/// </summary>
38-
[Params(100, 1_000, 10_000, 100_000, 1_000_000)]
38+
[Params(100, 1_000, 10_000)]
3939
public int RangeSpan { get; set; }
4040

4141
/// <summary>
4242
/// Cache coefficient size for left/right prefetch - varies from minimal (1) to aggressive (1,000).
4343
/// Combined with RangeSpan, determines total materialized cache size during rebalance.
4444
/// </summary>
45-
[Params(1, 10, 100, 1_000)]
45+
[Params(1, 10, 100)]
4646
public int CacheCoefficientSize { get; set; }
4747

4848
private int InitialStart => 10000;

tests/SlidingWindowCache.Benchmarks/Benchmarks/ScenarioBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ public class ScenarioBenchmarks
3737
/// <summary>
3838
/// Requested range size - varies from small (100) to very large (1,000,000) to test scenario scaling behavior.
3939
/// </summary>
40-
[Params(100, 1_000, 10_000, 100_000, 1_000_000)]
40+
[Params(100, 1_000, 10_000)]
4141
public int RangeSpan { get; set; }
4242

4343
/// <summary>
4444
/// Cache coefficient size for left/right prefetch - varies from minimal (1) to aggressive (1,000).
4545
/// Combined with RangeSpan, determines total materialized cache size in scenarios.
4646
/// </summary>
47-
[Params(1, 10, 100, 1_000)]
47+
[Params(1, 10, 100)]
4848
public int CacheCoefficientSize { get; set; }
4949

5050
private int ColdStartRangeStart => 10000;

tests/SlidingWindowCache.Benchmarks/Benchmarks/UserFlowBenchmarks.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ public class UserFlowBenchmarks
3535
/// <summary>
3636
/// Requested range size - varies from small (100) to very large (1,000,000) to test scaling behavior.
3737
/// </summary>
38-
[Params(100, 1_000, 10_000, 100_000, 1_000_000)]
38+
[Params(100, 1_000, 10_000)]
3939
public int RangeSpan { get; set; }
4040

4141
/// <summary>
4242
/// Cache coefficient size for left/right prefetch - varies from minimal (1) to aggressive (1,000).
4343
/// Combined with RangeSpan, determines total materialized cache size.
4444
/// </summary>
45-
[Params(1, 10, 100, 1_000)]
45+
[Params(1, 10, 100)]
4646
public int CacheCoefficientSize { get; set; }
4747

4848
// Range will be calculated based on RangeSpan parameter

0 commit comments

Comments
 (0)