summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cmap_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/cmap_benchmark.cpp')
-rw-r--r--benchmarks/cmap_benchmark.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/benchmarks/cmap_benchmark.cpp b/benchmarks/cmap_benchmark.cpp
index 3fb939fa..98f90479 100644
--- a/benchmarks/cmap_benchmark.cpp
+++ b/benchmarks/cmap_benchmark.cpp
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <time.h>
#include <stc/crandom.h>
-#include <stc/cmap.h>
#ifdef __cplusplus
#include <unordered_map>
@@ -16,7 +15,11 @@ uint64_t seed = 1, mask1 = 0xffffffff;
static float secs(Range s) { return (float)(s.t2 - s.t1) / CLOCKS_PER_SEC; }
-using_cmap(x, size_t, size_t, c_default_equals, c_default_hash64);
+#define i_tag x
+#define i_key size_t
+#define i_val size_t
+#define i_hash c_default_hash64
+#include <stc/cmap.h>
#ifdef __cplusplus
Sample test_std_unordered_map() {