summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/csmap_benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/csmap_benchmark.cpp')
-rw-r--r--benchmarks/csmap_benchmark.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/benchmarks/csmap_benchmark.cpp b/benchmarks/csmap_benchmark.cpp
index 0c73ca32..cd7f5509 100644
--- a/benchmarks/csmap_benchmark.cpp
+++ b/benchmarks/csmap_benchmark.cpp
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <time.h>
#include <stc/crandom.h>
-#include <stc/csmap.h>
#ifdef __cplusplus
#include <map>
@@ -16,7 +15,10 @@ uint64_t seed = 1, mask1 = 0xfffffff;
static float secs(Range s) { return (float)(s.t2 - s.t1) / CLOCKS_PER_SEC; }
-using_csmap(x, size_t, size_t);
+#define i_tag x
+#define i_key size_t
+#define i_val size_t
+#include <stc/csmap.h>
#ifdef __cplusplus
Sample test_std_map() {