fixed tests
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
{
|
||||
return xxHash32.ComputeHash(data, data.Length);
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
[Benchmark]
|
||||
public uint Hash32_Span()
|
||||
{
|
||||
@@ -50,7 +50,7 @@
|
||||
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(data);
|
||||
return xxHash32.ComputeHash(span, span.Length);
|
||||
}
|
||||
|
||||
#endif
|
||||
[Benchmark]
|
||||
public uint Hash32_Stream()
|
||||
{
|
||||
@@ -70,7 +70,7 @@
|
||||
{
|
||||
return xxHash64.ComputeHash(data, data.Length);
|
||||
}
|
||||
|
||||
#if NET6_0_OR_GREATER
|
||||
[Benchmark]
|
||||
public ulong Hash64_Span()
|
||||
{
|
||||
@@ -84,6 +84,7 @@
|
||||
ReadOnlySpan<byte> span = new ReadOnlySpan<byte>(data);
|
||||
return xxHash64.ComputeHash(span, span.Length);
|
||||
}
|
||||
#endif
|
||||
|
||||
[Benchmark]
|
||||
public ulong Hash64_Stream()
|
||||
|
||||
Reference in New Issue
Block a user