Benchmarks disable / re-enabled, were heuristic is / is not used.
This commit is contained in:
1 parent
0d048ac078
commit
c4dfbf0fb2
1 file changed
+4
-4
@@ -140,7 +140,7 @@ public class Pow2MontgomeryModCycleComputationBenchmarks
|
|||||||
/// Montgomery reduction with a known cycle length (cycle lookup only); 25.81 μs on the small set (0.73× baseline) and 9.12 μs
|
/// Montgomery reduction with a known cycle length (cycle lookup only); 25.81 μs on the small set (0.73× baseline) and 9.12 μs
|
||||||
/// on the large one (0.08×).
|
/// on the large one (0.08×).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Benchmark]
|
// [Benchmark]
|
||||||
public ulong MontgomeryWithPrecomputedCycleGpu()
|
public ulong MontgomeryWithPrecomputedCycleGpu()
|
||||||
{
|
{
|
||||||
GetData(out ulong[] exponents, out MontgomeryDivisorData[] divisors, out ulong[] cycles);
|
GetData(out ulong[] exponents, out MontgomeryDivisorData[] divisors, out ulong[] cycles);
|
||||||
@@ -158,7 +158,7 @@ public class Pow2MontgomeryModCycleComputationBenchmarks
|
|||||||
/// Montgomery reduction with the cycle computed on the fly using the GPU helper; costs 54.09 ms on the small benchmark due to
|
/// Montgomery reduction with the cycle computed on the fly using the GPU helper; costs 54.09 ms on the small benchmark due to
|
||||||
/// cycle discovery, but drops to 12.91 μs on the large set (0.11× baseline).
|
/// cycle discovery, but drops to 12.91 μs on the large set (0.11× baseline).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
// [Benchmark]
|
[Benchmark]
|
||||||
public ulong MontgomeryWithGpuCycleComputationCpu()
|
public ulong MontgomeryWithGpuCycleComputationCpu()
|
||||||
{
|
{
|
||||||
GetData(out ulong[] exponents, out MontgomeryDivisorData[] divisors, out _);
|
GetData(out ulong[] exponents, out MontgomeryDivisorData[] divisors, out _);
|
||||||
@@ -207,7 +207,7 @@ public class Pow2MontgomeryModCycleComputationBenchmarks
|
|||||||
return checksum;
|
return checksum;
|
||||||
}
|
}
|
||||||
|
|
||||||
[Benchmark]
|
// [Benchmark]
|
||||||
public ulong MontgomeryWithHeuristicCycleComputationGpu()
|
public ulong MontgomeryWithHeuristicCycleComputationGpu()
|
||||||
{
|
{
|
||||||
GetData(out ulong[] exponents, out MontgomeryDivisorData[] divisors, out _);
|
GetData(out ulong[] exponents, out MontgomeryDivisorData[] divisors, out _);
|
||||||
@@ -351,7 +351,7 @@ public class Pow2MontgomeryModCycleComputationBenchmarks
|
|||||||
_previousPrimeOrder,
|
_previousPrimeOrder,
|
||||||
divisorData,
|
divisorData,
|
||||||
PrimeOrderCalculator.PrimeOrderSearchConfig.HeuristicDefault,
|
PrimeOrderCalculator.PrimeOrderSearchConfig.HeuristicDefault,
|
||||||
PrimeOrderCalculator.PrimeOrderHeuristicDevice.Gpu);
|
PrimeOrderCalculator.PrimeOrderHeuristicDevice.Cpu);
|
||||||
|
|
||||||
if (order != 0UL)
|
if (order != 0UL)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user