Commit e38f42ab authored by Marc Gravell's avatar Marc Gravell

change profiling parameters, cos *damn* that takes a long time!

parent f2e7109e
...@@ -20,20 +20,27 @@ internal static class Program ...@@ -20,20 +20,27 @@ internal static class Program
} }
internal class CustomConfig : ManualConfig internal class CustomConfig : ManualConfig
{ {
protected virtual Job Configure(Job j)
=> j.With(new GcMode { Force = true })
.With(InProcessToolchain.Instance);
public CustomConfig() public CustomConfig()
{ {
Job Get(Job j) => j
.With(new GcMode { Force = true })
.With(InProcessToolchain.Instance)
;
Add(new MemoryDiagnoser()); Add(new MemoryDiagnoser());
Add(StatisticColumn.OperationsPerSecond); Add(StatisticColumn.OperationsPerSecond);
Add(JitOptimizationsValidator.FailOnError); Add(JitOptimizationsValidator.FailOnError);
Add(Get(Job.Clr)); Add(Configure(Job.Clr));
//Add(Get(Job.Core)); //Add(Get(Job.Core));
} }
} }
internal class SlowConfig : CustomConfig
{
protected override Job Configure(Job j)
=> j.WithLaunchCount(1)
.WithWarmupCount(1)
.WithIterationCount(5);
public SlowConfig() { }
}
/// <summary> /// <summary>
/// The tests /// The tests
/// </summary> /// </summary>
...@@ -160,7 +167,9 @@ public async Task<int> ExecuteGeoRadiusAsync() ...@@ -160,7 +167,9 @@ public async Task<int> ExecuteGeoRadiusAsync()
} }
} }
#pragma warning disable CS1591 #pragma warning disable CS1591
[Config(typeof(CustomConfig))]
[Config(typeof(SlowConfig))]
public class Issue898 : IDisposable public class Issue898 : IDisposable
{ {
private readonly ConnectionMultiplexer mux; private readonly ConnectionMultiplexer mux;
......
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