Original benchmark selector restored.
This commit is contained in:
1 parent
c4dfbf0fb2
commit
7a22fbbba7
1 file changed
+10
-9
@@ -1,4 +1,5 @@
|
|||||||
using PerfectNumbers.Core.Gpu;
|
using BenchmarkDotNet.Configs;
|
||||||
|
using BenchmarkDotNet.Running;
|
||||||
|
|
||||||
namespace EvenPerfectBitScanner.Benchmarks;
|
namespace EvenPerfectBitScanner.Benchmarks;
|
||||||
|
|
||||||
@@ -6,16 +7,16 @@ public static class Program
|
|||||||
{
|
{
|
||||||
public static void Main(string[] args)
|
public static void Main(string[] args)
|
||||||
{
|
{
|
||||||
// var config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary | ConfigOptions.DisableOptimizationsValidator);
|
var config = DefaultConfig.Instance.WithOptions(ConfigOptions.JoinSummary | ConfigOptions.DisableOptimizationsValidator);
|
||||||
// BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
|
BenchmarkSwitcher.FromAssembly(typeof(Program).Assembly).Run(args, config);
|
||||||
|
|
||||||
Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new()
|
// Pow2MontgomeryModCycleComputationBenchmarks benchmarks = new()
|
||||||
{
|
// {
|
||||||
Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large
|
// Scale = Pow2MontgomeryModCycleComputationBenchmarks.InputScale.Large
|
||||||
};
|
// };
|
||||||
|
|
||||||
GpuPrimeWorkLimiter.SetLimit(1);
|
// GpuPrimeWorkLimiter.SetLimit(1);
|
||||||
benchmarks.Setup();
|
// benchmarks.Setup();
|
||||||
|
|
||||||
// Console.WriteLine("Press ENTER to run");
|
// Console.WriteLine("Press ENTER to run");
|
||||||
// Console.ReadLine();
|
// Console.ReadLine();
|
||||||
|
|||||||
Reference in new issue
Block a user