Skip to content

Commit

Permalink
fixed issue petabridge#266 - now the code works even if the RumTimeMi…
Browse files Browse the repository at this point in the history
…lliseconds is different than 1000.
  • Loading branch information
nicola.atorino committed Mar 3, 2021
1 parent 927d790 commit acd7599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NBench/Sdk/Benchmark.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit acd7599

Please # to comment.