mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-11 05:24:56 +00:00
26 lines
765 B
C#
26 lines
765 B
C#
using BenchmarkDotNet.Configs;
|
|
using BenchmarkDotNet.Jobs;
|
|
using BenchmarkDotNet.Running;
|
|
using BenchmarkDotNet.Toolchains.InProcess.Emit;
|
|
|
|
namespace SharpCompress.Performance;
|
|
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var config = DefaultConfig
|
|
.Instance.AddJob(
|
|
Job.Default
|
|
.WithToolchain(InProcessEmitToolchain.Instance)
|
|
.WithWarmupCount(1) // Minimal warmup iterations for CI
|
|
.WithIterationCount(3) // Minimal measurement iterations for CI
|
|
.WithInvocationCount(1)
|
|
.WithUnrollFactor(1)
|
|
);
|
|
|
|
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
|
|
}
|
|
}
|
|
|