public TestSetConfig()
        {
            var job = Job.Default.WithRuntime(CoreRuntime.Core50);

            //.WithMaxIterationCount(85);
            job.Run.RunStrategy = BenchmarkDotNet.Engines.RunStrategy.Throughput;
            AddJob(job);
            Orderer = new TestSetOrderProvider();
            AddExporter(new JsonExporter("", true, true));
            AddValidator(JitOptimizationsValidator.DontFailOnError);
            AddLogger(DefaultConfig.Instance.GetLoggers().ToArray());
            AddExporter(DefaultConfig.Instance.GetExporters().ToArray());
            AddColumnProvider(DefaultConfig.Instance.GetColumnProviders().ToArray());
        }
Ejemplo n.º 2
0
        public TestSetConfig()
        {
            var job = Job.Default.With(CoreRuntime.Core30)
                      .WithLaunchCount(1)
                      .WithWarmupCount(1)
                      .WithMinInvokeCount(1)
                      .WithInvocationCount(1)
                      .WithMaxRelativeError(0.1)
                      .WithUnrollFactor(1);

            job.Run.RunStrategy = BenchmarkDotNet.Engines.RunStrategy.Throughput;
            Add(job);
            Orderer = new TestSetOrderProvider();
            Add(new JsonExporter("", true, true));
            Add(JitOptimizationsValidator.DontFailOnError);
            Add(DefaultConfig.Instance.GetLoggers().ToArray());
            Add(DefaultConfig.Instance.GetExporters().ToArray());
            Add(DefaultConfig.Instance.GetColumnProviders().ToArray());
        }