Skip to content

Commit 87bd177

Browse files
committed
Revert some bench code
1 parent 95c3402 commit 87bd177

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

‎NBitcoin.Bench/UtilsBench.cs‎

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using BenchmarkDotNet.Attributes;
22
using NBitcoin.DataEncoders;
3-
using System;
43
using System.Collections.Generic;
54

65
namespace NBitcoin.Bench;
@@ -27,30 +26,10 @@ public static IEnumerable<object[]> ArrayEqualArgs
2726
}
2827
}
2928

30-
[Benchmark(Baseline = true)]
31-
[BenchmarkCategory("Master")]
32-
[ArgumentsSource(nameof(ArrayEqualArgs))]
33-
public bool ArrayEqual_Master(byte[] a, byte[] b)
34-
{
35-
return ArrayEqual_OldImpl(a, b);
36-
}
37-
3829
[Benchmark]
3930
[ArgumentsSource(nameof(ArrayEqualArgs))]
4031
public bool ArrayEqual(byte[] a, byte[] b)
4132
{
4233
return Utils.ArrayEqual(a, b);
4334
}
44-
45-
private static bool ArrayEqual_OldImpl(byte[] a, byte[] b)
46-
{
47-
if (a == null && b == null)
48-
return true;
49-
if (a == null)
50-
return false;
51-
if (b == null)
52-
return false;
53-
54-
return Utils.ArrayEqual(a, 0, b, 0, Math.Max(a.Length, b.Length));
55-
}
5635
}

0 commit comments

Comments
 (0)