Benchmark selection restored

This commit is contained in:
mlemanczyk committed 2025-10-12 20:15:38 +02:00
1 parent 9e5ee36e6e
commit 6c4fa7fcf6
1 file changed
+14 -12
+14 -12
View File
@@ -8,20 +8,22 @@ public static class Program
{ {
public static void Main(string[] args) public static void Main(string[] args)
{ {
if (args.Length > 0) if (args.Length > 0)
{ {
IConfig config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary | ConfigOptions.DisableOptimizationsValidator); IConfig config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary | ConfigOptions.DisableOptimizationsValidator);
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config); BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
return; return;
} }
Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new() BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run();
{
Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large
};
GpuPrimeWorkLimiter.SetLimit(1); // Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new()
benchmarks.Setup(); // {
// Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large
// };
// GpuPrimeWorkLimiter.SetLimit(1);
// benchmarks.Setup();
// Console.WriteLine("Press ENTER to run"); // Console.WriteLine("Press ENTER to run");
// Console.ReadLine(); // Console.ReadLine();