Code for profiling added

This commit is contained in:
Marek Lemańczyk committed 2025-10-03 19:32:02 +02:00
1 parent 27a001001c
commit 874ea10a0e
1 file changed
+16 -1
+16 -1
View File
@@ -7,8 +7,23 @@ public static class Program
{
public static void Main(string[] args)
{
var config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary);
var config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary);
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
// Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new()
// {
// Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large
// };
// benchmarks.Setup();
// Console.WriteLine("Press ENTER to run");
// Console.ReadLine();
// foreach (int i in Enumerable.Range(0, 100_000))
// {
// benchmarks.MontgomeryWithPrecomputedCycle();
// }
}
}