diff options
| author | Tyge Løvset <[email protected]> | 2021-11-23 08:26:45 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-11-23 08:26:45 +0100 |
| commit | 7d98bb163c9c1db7bf352f63deb8e186ac212676 (patch) | |
| tree | 49b581d019e1edb7d91cda67f00c3d04bd9f75dc /benchmarks/shootout_hashmaps.cpp | |
| parent | 083b37734c8cdfa285dcf2c665e172244dc23313 (diff) | |
| download | STC-modified-7d98bb163c9c1db7bf352f63deb8e186ac212676.tar.gz STC-modified-7d98bb163c9c1db7bf352f63deb8e186ac212676.zip | |
Renamed c_default_hash32/64 to c_hash32/64. Old are deprecated (still available).
Diffstat (limited to 'benchmarks/shootout_hashmaps.cpp')
| -rw-r--r-- | benchmarks/shootout_hashmaps.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/benchmarks/shootout_hashmaps.cpp b/benchmarks/shootout_hashmaps.cpp index 382a6334..40e0e579 100644 --- a/benchmarks/shootout_hashmaps.cpp +++ b/benchmarks/shootout_hashmaps.cpp @@ -26,7 +26,7 @@ KHASH_MAP_INIT_INT64(ii, int64_t) // cmap and khash template expansion #define i_key int64_t #define i_val int64_t -#define i_hash c_default_hash64 +#define i_hash c_hash64 #define i_tag ii #include <stc/cmap.h> @@ -207,7 +207,7 @@ size_t seed; SEED(seed); \ for (size_t i = 0; i < m; ++i) \ M##_PUT(X, RAND(keybits), i); \ - size_t x = 500000000/M##_SIZE(X); \ + size_t x = 300000000/M##_SIZE(X); \ clock_t difference, before = clock(); \ for (int k=0; k < x; k++) M##_FOR (X, it) \ sum += M##_ITEM(X, it); \ @@ -227,7 +227,7 @@ size_t seed; for (size_t i = 0; i < m; ++i) \ M##_PUT(X, RAND(keybits), i); \ before = clock(); \ - size_t x = m * 20000000/M##_SIZE(X); \ + size_t x = m * 10000000/M##_SIZE(X); \ for (size_t i = 0; i < x; ++i) \ found += M##_FIND(X, RAND(keybits)); \ SEED(seed); \ |
