Skip to content

Commit 76798ab

Browse files
committed
Fixed GetMaxMeasurementCount.
1 parent a9458f1 commit 76798ab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/BenchmarkDotNet/Engines/EngineJitStage.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,9 @@ internal EngineFirstJitStage(bool evaluateOverhead, EngineParameters parameters)
4747

4848
private int GetMaxMeasurementCount()
4949
{
50-
if (!JitInfo.IsTiered)
51-
{
52-
return 1;
53-
}
54-
int count = JitInfo.MaxTierPromotions* JitInfo.TieredCallCountThreshold + 2;
50+
int count = JitInfo.IsTiered
51+
? JitInfo.MaxTierPromotions * JitInfo.TieredCallCountThreshold + 2
52+
: 1;
5553
if (evaluateOverhead)
5654
{
5755
count *= 2;

0 commit comments

Comments
 (0)