diff options
| author | Tyge Løvset <[email protected]> | 2022-11-01 21:57:10 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-11-01 21:57:10 +0100 |
| commit | a5ea027efc8b3d1e43df65dce042e945c2b48a52 (patch) | |
| tree | db6b0dcd7de7ba81fdc892f923aaa5586bbd8020 /benchmarks/shootout_hashmaps.cpp | |
| parent | 996de4d414603f10a493c6705a9c6aef3168aa30 (diff) | |
| download | STC-modified-a5ea027efc8b3d1e43df65dce042e945c2b48a52.tar.gz STC-modified-a5ea027efc8b3d1e43df65dce042e945c2b48a52.zip | |
Various updates.
Diffstat (limited to 'benchmarks/shootout_hashmaps.cpp')
| -rw-r--r-- | benchmarks/shootout_hashmaps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/shootout_hashmaps.cpp b/benchmarks/shootout_hashmaps.cpp index 39f7cd43..d662ed60 100644 --- a/benchmarks/shootout_hashmaps.cpp +++ b/benchmarks/shootout_hashmaps.cpp @@ -230,7 +230,7 @@ KHASH_MAP_INIT_INT64(ii, IValue) SEED(seed); \ for (size_t i = 0; i < m; ++i) \ M##_EMPLACE(X, RAND(keybits), i); \ - size_t rep = 70000000/M##_SIZE(X); \ + size_t rep = 70000000ull/M##_SIZE(X); \ clock_t difference, before = clock(); \ for (size_t k=0; k < rep; k++) M##_FOR (X, it) \ sum += M##_ITEM(X, it); \ @@ -250,7 +250,7 @@ KHASH_MAP_INIT_INT64(ii, IValue) for (size_t i = 0; i < m; ++i) \ M##_EMPLACE(X, RAND(keybits), i); \ before = clock(); \ - size_t x = m * 3000000/M##_SIZE(X); \ + size_t x = m * 3000000ull/M##_SIZE(X); \ for (size_t i = 0; i < x; ++i) \ found += M##_FIND(X, RAND(keybits)); \ SEED(seed); \ |
