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/plotbench | |
| 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/plotbench')
| -rw-r--r-- | benchmarks/plotbench/cmap_benchmark.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmarks/plotbench/cmap_benchmark.cpp b/benchmarks/plotbench/cmap_benchmark.cpp index 0dbe5a31..4c9c6c16 100644 --- a/benchmarks/plotbench/cmap_benchmark.cpp +++ b/benchmarks/plotbench/cmap_benchmark.cpp @@ -15,15 +15,15 @@ uint64_t seed = 1, mask1 = 0xffffffff; static float secs(Range s) { return (float)(s.t2 - s.t1) / CLOCKS_PER_SEC; }
-#define i_key size_t
-#define i_val size_t
-#define i_hash c_default_hash64
+#define i_key uint64_t
+#define i_val uint64_t
+#define i_hash c_hash64
#define i_tag x
#include <stc/cmap.h>
#ifdef __cplusplus
Sample test_std_unordered_map() {
- typedef std::unordered_map<size_t, size_t> container;
+ typedef std::unordered_map<uint64_t, uint64_t> container;
Sample s = {"std,unordered_map"};
{
stc64_srandom(seed);
|
