Skip to content

Commit

Permalink
add gxhash32 results
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Dec 15, 2024
1 parent e41184b commit f147ac5
Show file tree
Hide file tree
Showing 11 changed files with 81 additions and 12 deletions.
5 changes: 4 additions & 1 deletion Hashes.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,14 +350,17 @@ inline void xxHash32_test( const void * key, int len, uint32_t seed, void * out
// objsize 10-104 + 3e0-5ce: 738
*(uint32_t*)out = (uint32_t) XXH32(key, (size_t) len, (unsigned) seed);
}
inline void gxhash32_test( const void * key, int len, uint32_t seed, void * out ) {
*(uint32_t*)out = gxhash32((uint8_t*)key, (size_t) len, seed);
}
#ifdef HAVE_INT64
inline void xxHash64_test( const void * key, int len, uint32_t seed, void * out ) {
// objsize 630-7fc + c10-1213: 1999
*(uint64_t*)out = (uint64_t) XXH64(key, (size_t) len, (unsigned long long) seed);
}
inline void gxhash64_test( const void * key, int len, uint32_t seed, void * out ) {
// objsize 630-7fc + c10-1213: 1999
*(uint64_t*)out = (uint64_t) gxhash64((uint8_t*)key, (size_t) len, seed);
*(uint64_t*)out = gxhash64((uint8_t*)key, (size_t) len, seed);
}
#endif

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ SMhasher
| [k-hashv64](doc/k-hashv64.txt) | 9251.05 | 51.72 | 251.83 (2) |1279 | |
| [komihash](doc/komihash.txt) | 12179.74 | 33.23 | 224.80 (2) |1323 | |
| [polymur](doc/polymur.txt) | 9913.53 | 41.68 | 232.56 (3) |1128 | |
| [gxhash32](doc/gxhash32.txt) | 35920.97 | 42.58 | - | | AES only |
| [gxhash64](doc/gxhash64.txt) | 48919.73 | 36.61 | 236.98 (3) | | AES only |

The sortable table variants:
Expand Down
10 changes: 9 additions & 1 deletion doc/air.html
Original file line number Diff line number Diff line change
Expand Up @@ -1744,12 +1744,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">1017.15</td>
<td align="right">178.25</td>
<td align="right">313.64 (9)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 9 additions & 1 deletion doc/epyc.html
Original file line number Diff line number Diff line change
Expand Up @@ -1824,12 +1824,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">103530.08</td>
<td align="right">27.00</td>
<td align="right">147.16 (1)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 9 additions & 1 deletion doc/i686.html
Original file line number Diff line number Diff line change
Expand Up @@ -1664,12 +1664,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">46810.04</td>
<td align="right">43.86</td>
<td align="right">204.13 (2)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 9 additions & 1 deletion doc/i7.html
Original file line number Diff line number Diff line change
Expand Up @@ -1824,12 +1824,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">45409.33</td>
<td align="right">29.21</td>
<td align="right">145.25 (3)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 9 additions & 1 deletion doc/intel.html
Original file line number Diff line number Diff line change
Expand Up @@ -1752,12 +1752,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">1017.15</td>
<td align="right">178.25</td>
<td align="right">313.64 (9)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
16 changes: 12 additions & 4 deletions doc/phone.html
Original file line number Diff line number Diff line change
Expand Up @@ -1622,12 +1622,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">1017.15</td>
<td align="right">178.25</td>
<td align="right">313.64 (9)</td>
<td align="right"></td>
<td align="left"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 9 additions & 1 deletion doc/ryzen3.html
Original file line number Diff line number Diff line change
Expand Up @@ -1824,12 +1824,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">1017.15</td>
<td align="right">178.25</td>
<td align="right">313.64 (9)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
10 changes: 9 additions & 1 deletion doc/table.html
Original file line number Diff line number Diff line change
Expand Up @@ -1824,12 +1824,20 @@ <h1 id="smhasher">SMhasher</h1>
<td align="left"></td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash32.txt">gxhash32</a></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="right"></td>
<td align="left">AES only</td>
</tr>
<tr class="good">
<td align="left"><a href="gxhash64.txt">gxhash64</a></td>
<td align="right">48919.73</td>
<td align="right">36.61</td>
<td align="right">236.98 (3)</td>
<td align="right"></td>
<td align="left"></td>
<td align="left">AES only</td>
</tr>
</tbody>
</table>
Expand Down
1 change: 1 addition & 0 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,7 @@ HashInfo g_hashes[] =
{ farmhash128_c_test, 128, FARM128_VERIF,"farmhash128_c", "farmhash128_with_seed (C99)", GOOD, {} },
#endif
#ifdef HAVE_AESNI
{ gxhash32_test, 32, 0xEC19D715, "gxhash32", "gxHash, 32-bit, AES-only", GOOD, {} },
// FIXME
#if defined __linux && defined GITHUB_ACTIONS
#define GX_VFY 0x87FA3129
Expand Down

0 comments on commit f147ac5

Please sign in to comment.