2026-01-05 17:27:50 +00:00
|
|
|
using BenchmarkDotNet.Configs;
|
|
|
|
|
using BenchmarkDotNet.Running;
|
2025-10-23 09:39:57 +01:00
|
|
|
|
2026-01-05 17:27:50 +00:00
|
|
|
namespace SharpCompress.Performance;
|
2025-10-23 09:39:57 +01:00
|
|
|
|
2026-01-05 17:27:50 +00:00
|
|
|
internal class Program
|
2025-10-23 09:39:57 +01:00
|
|
|
{
|
2026-01-05 17:27:50 +00:00
|
|
|
static void Main(string[] args)
|
2025-10-23 09:39:57 +01:00
|
|
|
{
|
2026-01-05 17:27:50 +00:00
|
|
|
// Run all benchmarks in the assembly
|
|
|
|
|
var config = DefaultConfig.Instance;
|
2025-10-23 11:43:21 +01:00
|
|
|
|
2026-01-05 17:27:50 +00:00
|
|
|
// BenchmarkRunner will find all classes with [Benchmark] attributes
|
|
|
|
|
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
|
2025-10-23 09:39:57 +01:00
|
|
|
}
|
|
|
|
|
}
|