summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cmap_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-09-11 22:15:43 +0200
committerTyge Løvset <[email protected]>2021-09-11 22:15:43 +0200
commit658019e1e53ad1ccbca5c623b7199c445eab8b86 (patch)
tree609f3f69e0058984f7b30b06ad2e6cfb9736fb27 /benchmarks/cmap_benchmark.cpp
parentaba4aad980ff7f171f53c34915da0755f0ed079c (diff)
downloadSTC-modified-658019e1e53ad1ccbca5c623b7199c445eab8b86.tar.gz
STC-modified-658019e1e53ad1ccbca5c623b7199c445eab8b86.zip
Updated benchmarks to newstyle.
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() {