mirror of
https://github.com/DapperLib/Dapper.git
synced 2026-10-18 22:31:08 +08:00
1481c4d379
This is a branch cleaning up old `#if` clauses, `.csproj` bits, Linux build compatibility, and a few other tid-bits (broken out by commit). In general: we're on 3.0 tooling and all previous cruft has been removed.
47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using BenchmarkDotNet.Columns;
|
|
using BenchmarkDotNet.Configs;
|
|
using BenchmarkDotNet.Diagnosers;
|
|
using BenchmarkDotNet.Exporters;
|
|
using BenchmarkDotNet.Exporters.Csv;
|
|
using BenchmarkDotNet.Jobs;
|
|
using BenchmarkDotNet.Loggers;
|
|
using BenchmarkDotNet.Order;
|
|
using Dapper.Tests.Performance.Helpers;
|
|
|
|
namespace Dapper.Tests.Performance
|
|
{
|
|
public class Config : ManualConfig
|
|
{
|
|
public const int Iterations = 500;
|
|
|
|
public Config()
|
|
{
|
|
Add(ConsoleLogger.Default);
|
|
|
|
Add(CsvExporter.Default);
|
|
Add(MarkdownExporter.GitHub);
|
|
Add(HtmlExporter.Default);
|
|
|
|
var md = MemoryDiagnoser.Default;
|
|
Add(md);
|
|
Add(new ORMColum());
|
|
Add(TargetMethodColumn.Method);
|
|
Add(new ReturnColum());
|
|
Add(StatisticColumn.Mean);
|
|
Add(StatisticColumn.StdDev);
|
|
Add(StatisticColumn.Error);
|
|
Add(BaselineRatioColumn.RatioMean);
|
|
Add(DefaultColumnProviders.Metrics);
|
|
|
|
Add(Job.ShortRun
|
|
.WithLaunchCount(1)
|
|
.WithWarmupCount(2)
|
|
.WithUnrollFactor(Iterations)
|
|
.WithIterationCount(10)
|
|
);
|
|
Orderer = new DefaultOrderer(SummaryOrderPolicy.FastestToSlowest);
|
|
Options |= ConfigOptions.JoinSummary;
|
|
}
|
|
}
|
|
}
|