Skip to content

Commit

Permalink
rust hashes results
Browse files Browse the repository at this point in the history
for now just docs, will only add some to the lists (README, *.html)
most crypto hashes are unseeded, thus fail all seeds, perlinnoise tests.
  • Loading branch information
rurban committed Sep 16, 2023
1 parent 27b1533 commit ce39090
Show file tree
Hide file tree
Showing 50 changed files with 52,990 additions and 32 deletions.
11 changes: 7 additions & 4 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.49 (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 @@ -49,23 +50,25 @@ SMhasher
| [asconhashv12_64](doc/asconhashv12_64.txt) | 159.68 | 386.90 | 480.86 (4) |6490 | |
| [sha3-256](doc/sha3-256.txt) | 100.58 | 3877.18 |4159.79 (37)| | PerlinNoise |
| [sha3-256_64](doc/sha3-256_64.txt) | 100.57 | 3909.00 |4174.63 (16)| | PerlinNoise |
| [FxHash32](doc/FxHash32.txt) | 0.00 | 0.00 | 0.00 (0) | | rust, fixed seed |
| [FxHash64](doc/FxHash64.txt) | 0.00 | 0.00 | 0.00 (0) | | rust, fixed seed |
| [hasshe2](doc/hasshe2.txt) | 2773.89 | 64.35 | 282.30 (3) | 445 | Permutation,TwoBytes,Zeroes,Seed|
| [poly_1_mersenne](doc/poly_1_mersenne.txt) | 1369.21 | 61.59 | 248.86 (4) | 479 | fails most tests |
| [poly_2_mersenne](doc/poly_2_mersenne.txt) | 1364.03 | 70.30 | 261.00 (6) | 479 | |
| [poly_3_mersenne](doc/poly_3_mersenne.txt) | 1342.82 | 80.22 | 268.79 (2) | 479 | |
| [poly_4_mersenne](doc/poly_4_mersenne.txt) | 1343.19 | 89.13 | 277.52 (3) | 479 | |
| [tabulation32](doc/tabulation32.txt) | 5781.16 | 40.00 | 241.79 (10) | 848 | collisions |
| [tabulation32](doc/tabulation32.txt) | 5781.16 | 40.00 | 241.79 (10)| 848 | collisions |
| [tabulation](doc/tabulation.txt) | 7875.01 | 39.95 | 249.49 (3) | 554 | |
| [crc32_hw](doc/crc32_hw.txt) | 6244.38 | 41.23 | 226.80 (2) | 653 | insecure, 100% bias, collisions, distrib, BIC, machine-specific (SSE4.2/NEON) |
| [crc32_hw1](doc/crc32_hw1.txt) | 7569.29 | 49.07 | 233.75 (3) | 671 | insecure, 100% bias, collisions, distrib, BIC, machine-specific (x86 SSE4.2) |
| [crc64_hw](doc/crc64_hw.txt) | 6143.62 | 40.48 | 223.13 (2) | 652 | insecure, 100% bias, collisions, distrib, BIC, machine-specific (SSE4.2/NEON) |
| [crc32_pclmul](doc/crc32_pclmul.txt) | - | - | - | | insecure, 100% bias, collisions, distrib, BIC, machine-specific (x86 SSE4.2+PCLMUL) |
| [o1hash](doc/o1hash.txt) | 11629440.57 | 18.15 | 199.35 (2) | 101 | insecure, no seed, zeros, fails all tests |
| [fibonacci](doc/fibonacci.txt) | 16878.32 | 22.94 | 803.18 (15)|1692 | UB, zeros, fails all tests |
| [FNV1a](doc/FNV1a.txt) | 760.52 | 73.83 | 254.29 (5) | 204 | bad seed, zeros, fails all tests |
| [FNV1a](doc/FNV1a.txt) | 760.52 | 73.83 | 254.29 (5) | 204 | bad seed, zeros, fails all tests |
| [FNV1A_Totenschiff](doc/FNV1A_Totenschiff.txt)| 6274.78 | 26.23 | 251.13 (2) | 270 | UB, zeros, fails all tests |
| [FNV1A_Pippip_Yurii](doc/FNV1A_Pippip_Yurii.txt)| 6172.14 | 27.55 | 244.80 (2) | 147 | UB, sanity, fails all tests |
| [FNV1a_YT](doc/FNV1a_YT.txt) | 13486.49 | 30.50 | 237.43 (4) | 321 | bad seed, UB, fails all tests |
| [FNV1A_Pippip_Yurii](doc/FNV1A_Pippip_Yurii.txt)| 6172.14 | 27.55 | 244.80 (2) | 147 | UB, sanity, fails all tests |
| [FNV1a_YT](doc/FNV1a_YT.txt) | 13486.49 | 30.50 | 237.43 (4) | 321 | bad seed, UB, fails all tests|
| [FNV2](doc/FNV2.txt) | 6171.60 | 32.20 | 208.59 (4) | 278 | fails all tests |
| [FNV64](doc/FNV64.txt) | 774.37 | 72.43 | 201.15 (2) | 79 | fails all tests |
| [FNV128](doc/FNV128.txt) | 390.14 | 136.42 | 289.00 (3) | 171 | fails all tests |
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 ce39090

Please sign in to comment.