Original benchmark selector restored.

This commit is contained in:
mlemanczyk committed 2025-10-18 01:34:53 +02:00
1 parent c4dfbf0fb2
commit 7a22fbbba7
1 file changed
+10 -9
+10 -9
View File
@@ -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();