Skip to content

Commit 30d23c4

Browse files
committed
Update docs
1 parent fd21646 commit 30d23c4

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# 2022-06-13
2+
- Added xxHash3
13
# 2022-06-05
24
- Added SIMD support for xxHash128
35
- Inlined all method calls for xxHash128

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ Runtime=.NET 6.0
3535
```
3636

3737
| Method | x64 |
38-
|:---------------|----------:|
38+
|:---------------|-----------:|
3939
| Hash32 Array | 5.87 GB/s |
4040
| Hash64 Array | 9.07 GB/s |
4141
| Hash128 Array | 12.04 GB/s |
42+
| Hash3 Array | 12.08 GB/s |
4243
| Hash32 Span | 5.87 GB/s |
4344
| Hash64 Span | 9.07 GB/s |
4445
| Hash128 Span | 12.04 GB/s |
46+
| Hash3 Span | 12.08 GB/s |
4547
| Hash32 Stream | 3.22 GB/s |
4648
| Hash64 Stream | 4.81 GB/s |
4749

@@ -55,6 +57,8 @@ Runtime=.NET 6.0
5557
| Hash64 | x64 | C | 74.2 ns | 64.8 us | 83.0 ms | 12.04 GB/s |
5658
| Hash128 (SSE2/AVX2)| x64 | C# | 151.6 ns | 64.5 us | 80.5 ms | 12.04 GB/s |
5759
| Hash128 (SSE2/AVX2)| x64 | C | 84.4 ns | 38.3 us | 57.4 ms | 17.42 GB/s |
60+
| Hash3 (SSE2/AVX2)| x64 | C# | 77.6 ns | 62.1 us | 78.5 ms | 12.08 GB/s |
61+
| Hash3 (SSE2/AVX2)| x64 | C | 73.7 ns | 42.2 us | 59.8 ms | 16.72 GB/s |
5862

5963

6064
## Api
@@ -102,6 +106,11 @@ uint h32_4 = xxHash32.ComputeHash(new MemoryStream(data));
102106
uint h32_5 = await xxHash32.ComputeHashAsync(new MemoryStream(data));
103107
uint h32_6 = xxHash32.ComputeHash("veni vidi vici");
104108

109+
ulong h3_1 = xxHash3.ComputeHash(data, data.Length);
110+
ulong h3_2 = xxHash3.ComputeHash(new Span<byte>(data), data.Length);
111+
ulong h3_3 = xxHash3.ComputeHash(new ReadOnlySpan<byte>(data), data.Length);
112+
ulong h3_4 = xxHash3.ComputeHash("veni vidi vici");
113+
105114
uint128 h128_1 = xxHash128.ComputeHash(data, data.Length);
106115
uint128 h128_2 = xxHash128.ComputeHash(new Span<byte>(data), data.Length);
107116
uint128 h128_3 = xxHash128.ComputeHash(new ReadOnlySpan<byte>(data), data.Length);

nuget.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<PackageId>Standart.Hash.xxHash</PackageId>
6-
<VersionPrefix>4.0.2</VersionPrefix>
6+
<VersionPrefix>4.0.3</VersionPrefix>
77
<AssemblyName>Standart.Hash.xxHash</AssemblyName>
88
<AssemblyTitle>Standart.Hash.xxHash</AssemblyTitle>
99
<Authors>Oleksandr Melnyk</Authors>

0 commit comments

Comments
 (0)