Skip to content

Commit

Permalink
WIP rust hashes results
Browse files Browse the repository at this point in the history
for now just docs, will only some to the lists (README, *.html)
  • Loading branch information
rurban committed Sep 15, 2023
1 parent 27b1533 commit 36f1125
Show file tree
Hide file tree
Showing 36 changed files with 38,384 additions and 22 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ SMhasher
| [BadHash](doc/BadHash.txt) | 769.94 | 73.97 | -| 47 | bad seed 0, test FAIL |
| [sumhash](doc/sumhash.txt) | 10699.57 | 29.53 | -| 363 | bad seed 0, test FAIL |
| [sumhash32](doc/sumhash32.txt) | 42877.79 | 23.12 | -| 863 | UB, test FAIL |
| [hash_hasher_rs](doc/hash_hasher_rs.txt) | 14423076.92 | 17.18 | 448.48 (1) | | rust, sanity, fails all tests |
| [multiply_shift](doc/multiply_shift.txt) | 8026.77 | 26.05 | 226.80 (8) | 345 | bad seeds & 0xfffffff0, fails most tests |
| [pair_multiply_shift](doc/pair_multiply_shift)| 3716.95 | 40.22 | 186.34 (3) | 609 | fails most tests |
| -------------------------- | | | | | |
Expand Down Expand Up @@ -217,6 +218,12 @@ SMhasher
| [k-hashv64](doc/k-hashv32.txt) | 7850.92 | 46.94 | 193.94 (1) |1279 | |
| [komihash](doc/komihash.txt) | 12191.22 | 33.19 | 230.67 (3) |1323 | |
| [polymur](doc/polymur.txt) | 9676.33 | 42.70 | 246.53 (3) |1128 | |
| [FxHash32](doc/FxHash32.txt) | 0 | 0 | 0 | | rust |
| [FxHash64](doc/FxHash64.txt) | 0 | 0 | 0 | | rust |
| [SHAKE128_rs](doc/SHAKE128_rs.txt) | 0 | 0 | 0 | | rust |
| [SHAKE256_rs](doc/SHAKE256_rs.txt) | 0 | 0 | 0 | | rust |
| [TurboSHAKE128_rs](doc/TurboSHAKE128_rs.txt) | 0 | 0 | 0 | | rust |
| [TurboSHAKE256_rs](doc/TurboSHAKE256_rs.txt) | 0 | 0 | 0 | | rust |

The sortable table variants:

Expand Down
74 changes: 74 additions & 0 deletions doc/Adler_rs.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
-------------------------------------------------------------------------------
--- Testing Adler_rs "Adler-32 checksum implementation (used by `zlib`, crate `adler`)" GOOD

[[[ Sanity Tests ]]]

Verification value 0x6E8E8F4D ....... PASS
Running sanity check 1 .......... PASS
Running AppendedZeroesTest .......... PASS

[[[ Speed Tests ]]]

Bulk speed test - 262144-byte keys
Alignment 7 - 2.030 bytes/cycle - 5808.35 MiB/sec @ 3 ghz
Alignment 6 - 2.025 bytes/cycle - 5793.19 MiB/sec @ 3 ghz
Alignment 5 - 2.022 bytes/cycle - 5786.23 MiB/sec @ 3 ghz
Alignment 4 - 2.029 bytes/cycle - 5805.70 MiB/sec @ 3 ghz
Alignment 3 - 2.029 bytes/cycle - 5803.75 MiB/sec @ 3 ghz
Alignment 2 - 2.029 bytes/cycle - 5806.37 MiB/sec @ 3 ghz
Alignment 1 - 2.029 bytes/cycle - 5805.15 MiB/sec @ 3 ghz
Alignment 0 - 2.030 bytes/cycle - 5807.48 MiB/sec @ 3 ghz
Average - 2.028 bytes/cycle - 5802.03 MiB/sec @ 3 ghz

Small key speed test - 1-byte keys - 30.00 cycles/hash
Small key speed test - 2-byte keys - 31.00 cycles/hash
Small key speed test - 3-byte keys - 32.00 cycles/hash
Small key speed test - 4-byte keys - 46.00 cycles/hash
Small key speed test - 5-byte keys - 46.00 cycles/hash
Small key speed test - 6-byte keys - 47.42 cycles/hash
Small key speed test - 7-byte keys - 48.00 cycles/hash
Small key speed test - 8-byte keys - 50.00 cycles/hash
Small key speed test - 9-byte keys - 50.76 cycles/hash
Small key speed test - 10-byte keys - 51.77 cycles/hash
Small key speed test - 11-byte keys - 52.69 cycles/hash
Small key speed test - 12-byte keys - 56.99 cycles/hash
Small key speed test - 13-byte keys - 54.13 cycles/hash
Small key speed test - 14-byte keys - 54.86 cycles/hash
Small key speed test - 15-byte keys - 53.94 cycles/hash
Small key speed test - 16-byte keys - 54.03 cycles/hash
Small key speed test - 17-byte keys - 54.38 cycles/hash
Small key speed test - 18-byte keys - 56.06 cycles/hash
Small key speed test - 19-byte keys - 55.62 cycles/hash
Small key speed test - 20-byte keys - 55.00 cycles/hash
Small key speed test - 21-byte keys - 55.79 cycles/hash
Small key speed test - 22-byte keys - 56.99 cycles/hash
Small key speed test - 23-byte keys - 57.42 cycles/hash
Small key speed test - 24-byte keys - 55.97 cycles/hash
Small key speed test - 25-byte keys - 57.39 cycles/hash
Small key speed test - 26-byte keys - 58.47 cycles/hash
Small key speed test - 27-byte keys - 58.24 cycles/hash
Small key speed test - 28-byte keys - 57.00 cycles/hash
Small key speed test - 29-byte keys - 58.39 cycles/hash
Small key speed test - 30-byte keys - 59.45 cycles/hash
Small key speed test - 31-byte keys - 60.84 cycles/hash
Average 52.147 cycles/hash

[[[ 'Hashmap' Speed Tests ]]]

std::unordered_map
Init std HashMapTest: 953.977 cycles/op (479826 inserts, 1% deletions)
Running std HashMapTest: 859.126 cycles/op (4.6 stdv)

greg7mdp/parallel-hashmap
Init fast HashMapTest: 205.688 cycles/op (479826 inserts, 1% deletions)
Running fast HashMapTest: 575.244 cycles/op (1.2 stdv) ....... PASS

[[[ Avalanche Tests ]]]

Testing 24-bit keys -> 32-bit hashes, 300000 reps.[[[ BadSeeds Tests ]]]

Testing 0 internal secrets:
0x0 PASS
Testing the first 0xffffffff seeds ...
4 threads starting...
at 0
Loading

0 comments on commit 36f1125

Please sign in to comment.