Skip to content

Commit 10e4e44

Browse files
committed
Zero threshold.
1 parent 807c0e6 commit 10e4e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/BenchmarkDotNet.IntegrationTests.ManualRunning/ExpectedBenchmarkResultsTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public void NonEmptyBenchmarkReportsNonZeroTimeAndZeroAllocated(ToolchainType to
136136
// Modern cpus can execute multiple instructions per clock cycle,
137137
// resulting in measurements greater than 0 but less than 1 clock cycle.
138138
// (example: Intel Core i9-9880H CPU 2.30GHz reports 0.2852 ns for `_field++;`)
139-
var threshold = new NumberValue(cpuResolution.Nanoseconds / 4).ToThreshold();
139+
var threshold = Threshold.Zero;
140140
var overheadSubtraction = cpuResolution.Nanoseconds * subtractOverheadByClocks;
141141

142142
foreach (var report in summary.Reports)

0 commit comments

Comments
 (0)