Commit c5f884de authored by Nick Craver's avatar Nick Craver

Fix benchmark stability

Lots of runs is good, but changed behavior and greatly affects stability (due to GC).
parent 2a2ff865
......@@ -12,7 +12,7 @@ namespace Dapper.Tests.Performance
{
public class Config : ManualConfig
{
public const int Iterations = 5000;
public const int Iterations = 500;
public Config()
{
......@@ -28,16 +28,16 @@ public Config()
Add(TargetMethodColumn.Method);
Add(new ReturnColum());
Add(StatisticColumn.Mean);
Add(StatisticColumn.StdDev);
Add(StatisticColumn.Error);
//Add(StatisticColumn.StdDev);
//Add(StatisticColumn.Error);
Add(BaselineScaledColumn.Scaled);
Add(md.GetColumnProvider());
Add(Job.Dry
.WithLaunchCount(1)
.WithWarmupCount(1)
.WithInvocationCount(Iterations)
.WithIterationCount(10)
Add(Job.ShortRun
.WithLaunchCount(1)
.WithWarmupCount(2)
.WithUnrollFactor(Iterations)
.WithIterationCount(1)
);
Set(new DefaultOrderer(SummaryOrderPolicy.FastestToSlowest));
SummaryPerType = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment