Files
even-perfect-numbers-scanner/EvenPerfectBitScanner.Benchmarks/Program.cs
T
2025-10-17 02:40:51 +02:00

30 lines
859 B
C#

using PerfectNumbers.Core.Gpu;
namespace EvenPerfectBitScanner.Benchmarks;
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);
Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new()
{
Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large
};
GpuPrimeWorkLimiter.SetLimit(1);
benchmarks.Setup();
// Console.WriteLine("Press ENTER to run");
// Console.ReadLine();
// foreach (int i in Enumerable.Range(0, 100_000))
// {
// benchmarks.MontgomeryWithPrecomputedCycle();
// }
}
}