Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6236806

Browse files
authored
Merge pull request #1053 from losttech/PR/AppVeyorTimings
limit benchmark time in config
2 parents 9fb8436 + 7034390 commit 6236806

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/perf_tests/BaselineComparisonConfig.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
using BenchmarkDotNet.Configs;
77
using BenchmarkDotNet.Jobs;
8+
using BenchmarkDotNet.Horology;
89

910
namespace Python.PerformanceTests
1011
{
@@ -18,7 +19,11 @@ public BaselineComparisonConfig()
1819

1920
string deploymentRoot = BenchmarkTests.DeploymentRoot;
2021

21-
var baseJob = Job.Default;
22+
var baseJob = Job.Default
23+
.WithLaunchCount(1)
24+
.WithWarmupCount(3)
25+
.WithMaxIterationCount(100)
26+
.WithIterationTime(TimeInterval.FromMilliseconds(100));
2227
this.Add(baseJob
2328
.WithId("baseline")
2429
.WithEnvironmentVariable(EnvironmentVariableName,

0 commit comments

Comments
 (0)