2026-02-05 13:30:57 +00:00
|
|
|
using BenchmarkDotNet.Configs;
|
|
|
|
|
using BenchmarkDotNet.Jobs;
|
|
|
|
|
using BenchmarkDotNet.Running;
|
|
|
|
|
using BenchmarkDotNet.Toolchains.InProcess.Emit;
|
2025-10-23 09:39:57 +01:00
|
|
|
|
2026-02-05 13:30:57 +00:00
|
|
|
namespace SharpCompress.Performance;
|
2025-10-23 09:39:57 +01:00
|
|
|
|
2026-02-05 13:30:57 +00:00
|
|
|
public class Program
|
2025-10-23 09:39:57 +01:00
|
|
|
{
|
2026-02-05 13:30:57 +00:00
|
|
|
public static void Main(string[] args)
|
2025-10-23 09:39:57 +01:00
|
|
|
{
|
2026-02-05 13:30:57 +00:00
|
|
|
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)
|
|
|
|
|
);
|
2025-10-23 11:43:21 +01:00
|
|
|
|
2026-02-05 13:30:57 +00:00
|
|
|
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
|
2025-10-23 09:39:57 +01:00
|
|
|
}
|
|
|
|
|
}
|
2026-02-05 13:30:57 +00:00
|
|
|
|