Skip to content

Commit

Permalink
Timings for CompetitionLimitsAnalyser test - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ig-sinicyn committed May 22, 2016
1 parent 2770092 commit 8903692
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public class CompetitionLimitsOkBenchmark : EmptyBenchmark
public void Baseline()
{
Interlocked.Increment(ref _testCount);
Thread.Sleep(30);
Thread.Sleep(20);
}

[CompetitionBenchmark(9, 11)]
[CompetitionBenchmark(5, 15)]
public void WithinLimits()
{
Interlocked.Increment(ref _testCount);
Thread.Sleep(300);
Thread.Sleep(200);
}
}

Expand All @@ -101,14 +101,14 @@ public class CompetitionLimitsXmlOkBenchmark : EmptyBenchmark
public void Baseline()
{
Interlocked.Increment(ref _testCount);
Thread.Sleep(30);
Thread.Sleep(20);
}

[CompetitionBenchmark]
public void WithinLimits()
{
Interlocked.Increment(ref _testCount);
Thread.Sleep(600);
Thread.Sleep(400);
}
}

Expand All @@ -118,14 +118,14 @@ public class CompetitionLimitsFailBenchmark : EmptyBenchmark
public void Baseline()
{
Interlocked.Increment(ref _testCount);
Thread.Sleep(30);
Thread.Sleep(20);
}

[CompetitionBenchmark(1, 1)]
public void OutOfLimits()
{
Interlocked.Increment(ref _testCount);
Thread.Sleep(300);
Thread.Sleep(200);
}
}
#endregion
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<CompetitionBenchmarks>
<Competition Target="CompetitionLimitsXmlOkBenchmark">
<Candidate Target="WithinLimits" MinRatio="17" MaxRatio="23" />
<Candidate Target="WithinLimits" MinRatio="10" MaxRatio="30" />
</Competition>
</CompetitionBenchmarks>

0 comments on commit 8903692

Please sign in to comment.