From acd759988125b931f60a6cbb0d96800afa7fbdcb Mon Sep 17 00:00:00 2001 From: "nicola.atorino" Date: Wed, 3 Mar 2021 16:43:12 +0100 Subject: [PATCH] fixed issue #266 - now the code works even if the RumTimeMilliseconds is different than 1000. --- src/NBench/Sdk/Benchmark.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NBench/Sdk/Benchmark.cs b/src/NBench/Sdk/Benchmark.cs index 00dccd65..a3d2d47e 100644 --- a/src/NBench/Sdk/Benchmark.cs +++ b/src/NBench/Sdk/Benchmark.cs @@ -258,9 +258,9 @@ protected void PreRun() { if (RunMode == RunMode.Throughput) { - // Need to pass in the # of estimated runs per second in order to compile + // Need to pass in the total amount of runs in order to compile // the invoker with an inlined loop - Invoker.InvokePerfSetup(WarmupData.EstimatedRunsPerSecond, _currentRun.Context); + Invoker.InvokePerfSetup(WarmupData.ActualRunsMeasured, _currentRun.Context); } else {