summaryrefslogtreecommitdiffhomepage
path: root/misc/benchmarks/shootout_hashmaps.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-04-21 14:41:47 +0200
committerTyge Løvset <[email protected]>2023-04-21 14:41:47 +0200
commitfeea8547482d8822a288977201e08eded1551e59 (patch)
tree4487d54870bf4f54fb7744024fcba0d1241ead6b /misc/benchmarks/shootout_hashmaps.cpp
parent4375640bdf856866fa2a1e7010103736077b9738 (diff)
downloadSTC-modified-feea8547482d8822a288977201e08eded1551e59.tar.gz
STC-modified-feea8547482d8822a288977201e08eded1551e59.zip
Householding.
Diffstat (limited to 'misc/benchmarks/shootout_hashmaps.cpp')
-rw-r--r--misc/benchmarks/shootout_hashmaps.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/benchmarks/shootout_hashmaps.cpp b/misc/benchmarks/shootout_hashmaps.cpp
index 886bb345..8eb36b34 100644
--- a/misc/benchmarks/shootout_hashmaps.cpp
+++ b/misc/benchmarks/shootout_hashmaps.cpp
@@ -35,7 +35,7 @@ KHASH_MAP_INIT_INT64(ii, IValue)
// cmap template expansion
#define i_key IKey
#define i_val IValue
-#define i_expandby 2 // enable 2^K buckets like the rest.
+//#define i_sizebits 64 // more than 2.2 billion elements?
#define i_tag ii
#define i_max_load_factor MAX_LOAD_FACTOR / 100.0f
#include <stc/cmap.h>
@@ -335,8 +335,8 @@ int main(int argc, char* argv[])
printf("\nT1: Insert %g mill. random keys range [0, 2^%u): map[rnd] = i;\n", N1/1000000.0, keybits);
RUN_TEST(1)
- printf("\nT2: Insert %g mill. SEQUENTIAL keys, erase them in same order:\n", N2/1000000.0);
- RUN_TEST(2)
+ //printf("\nT2: Insert %g mill. SEQUENTIAL keys, erase them in same order:\n", N2/1000000.0);
+ //RUN_TEST(2)
printf("\nT3: Erase all elements by lookup (%u mill. random inserts), key range [0, 2^%u)\n", n_mill*2, keybits);
RUN_TEST(3)