-
-
Notifications
You must be signed in to change notification settings - Fork 987
/
Copy pathTestConfigs.cs
47 lines (42 loc) · 1.12 KB
/
TestConfigs.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Engines;
using BenchmarkDotNet.Jobs;
namespace BenchmarkDotNet.IntegrationTests
{
public class SingleJobConfig : ManualConfig
{
public SingleJobConfig(Job job)
{
AddJob(job);
}
}
public class SingleRunFastConfig : ManualConfig
{
public SingleRunFastConfig()
{
AddJob(Job.Dry);
}
}
public class SingleRunMediumConfig : ManualConfig
{
public SingleRunMediumConfig()
{
AddJob(new Job(Job.Dry) { Run = { IterationCount = 5 } });
}
}
public class ThroughputFastConfig : ManualConfig
{
public ThroughputFastConfig()
{
AddJob(new Job(Job.Dry) { Run = { RunStrategy = RunStrategy.Throughput, IterationCount = 1 } });
}
}
public class DiagnoserConfig : ManualConfig
{
public DiagnoserConfig()
{
// Diagnosers need enough runs to collects the statistics!
AddJob(new Job { Run = { LaunchCount = 1, WarmupCount = 1, IterationCount = 50 } });
}
}
}