diff --git a/EvenPerfectBitScanner.Benchmarks/Program.cs b/EvenPerfectBitScanner.Benchmarks/Program.cs index 7c70f11..6850552 100644 --- a/EvenPerfectBitScanner.Benchmarks/Program.cs +++ b/EvenPerfectBitScanner.Benchmarks/Program.cs @@ -1,4 +1,5 @@ -using PerfectNumbers.Core.Gpu; +using BenchmarkDotNet.Configs; +using BenchmarkDotNet.Running; namespace EvenPerfectBitScanner.Benchmarks; @@ -6,16 +7,16 @@ public static class Program { public static void Main(string[] args) { - // var config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary | ConfigOptions.DisableOptimizationsValidator); - // BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config); + var config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary | ConfigOptions.DisableOptimizationsValidator); + BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config); - Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new() - { - Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large - }; + // Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new() + // { + // Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large + // }; - GpuPrimeWorkLimiter.SetLimit(1); - benchmarks.Setup(); + // GpuPrimeWorkLimiter.SetLimit(1); + // benchmarks.Setup(); // Console.WriteLine("Press ENTER to run"); // Console.ReadLine();