Skip to content

Commit 2389c16

Browse files
author
Ivan Tikhonov
committed
NET6_0_OR_GREATER
1 parent 1506c3c commit 2389c16

3 files changed

Lines changed: 5 additions & 11 deletions

File tree

IT.Hashing.Benchmarks/Hash.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public byte[] IT_Bytes_CRC32()
6565
[Benchmark]
6666
public uint IO_UInt32_XXH32() => System.IO.Hashing.XxHash32.HashToUInt32(_bytes);
6767

68-
#if NET6_0
68+
#if NET6_0_OR_GREATER
6969

7070
[Benchmark]
7171
public ulong ST_UInt32_XXH32() => Standart.Hash.xxHash.xxHash32.ComputeHash(_bytes);
@@ -94,7 +94,7 @@ public byte[] IT_Bytes_XXH32()
9494
[Benchmark]
9595
public ulong IO_UInt64_XXH64() => System.IO.Hashing.XxHash64.HashToUInt64(_bytes);
9696

97-
#if NET6_0
97+
#if NET6_0_OR_GREATER
9898

9999
[Benchmark]
100100
public ulong ST_UInt64_XXH64() => Standart.Hash.xxHash.xxHash64.ComputeHash(_bytes);
@@ -120,7 +120,7 @@ public byte[] IT_Bytes_XXH64()
120120
[Benchmark]
121121
public ulong IO_UInt64_XXH3() => System.IO.Hashing.XxHash3.HashToUInt64(_bytes);
122122

123-
#if NET6_0
123+
#if NET6_0_OR_GREATER
124124

125125
[Benchmark]
126126
public ulong ST_UInt64_XXH3() => Standart.Hash.xxHash.xxHash3.ComputeHash(_bytes, _bytes.Length);

IT.Hashing.Benchmarks/IT.Hashing.Benchmarks.csproj

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,7 @@
2121
<ProjectReference Include="..\IT.Hashing\IT.Hashing.csproj" />
2222
</ItemGroup>
2323

24-
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0'">
25-
<PackageReference Include="Standart.Hash.xxHash">
26-
<Version>4.0.5</Version>
27-
</PackageReference>
28-
</ItemGroup>
29-
30-
<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
24+
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
3125
<PackageReference Include="Standart.Hash.xxHash">
3226
<Version>4.0.5</Version>
3327
</PackageReference>

IT.Hashing.Benchmarks/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
if (!bench.IO_Bytes_XXH64().SequenceEqual(bench.IT_Bytes_XXH64())) throw new InvalidOperationException();
2222

23-
#if NET6_0
23+
#if NET6_0_OR_GREATER
2424
if (bench.ST_UInt32_XXH32() != bench.IO_UInt32_XXH32()) throw new InvalidOperationException();
2525

2626
if (bench.ST_UInt64_XXH64() != bench.IO_UInt64_XXH64()) throw new InvalidOperationException();

0 commit comments

Comments
 (0)