diff options
| author | Tyge Løvset <[email protected]> | 2021-09-11 22:15:43 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-11 22:15:43 +0200 |
| commit | 658019e1e53ad1ccbca5c623b7199c445eab8b86 (patch) | |
| tree | 609f3f69e0058984f7b30b06ad2e6cfb9736fb27 /benchmarks/csmap_benchmark.cpp | |
| parent | aba4aad980ff7f171f53c34915da0755f0ed079c (diff) | |
| download | STC-modified-658019e1e53ad1ccbca5c623b7199c445eab8b86.tar.gz STC-modified-658019e1e53ad1ccbca5c623b7199c445eab8b86.zip | |
Updated benchmarks to newstyle.
Diffstat (limited to 'benchmarks/csmap_benchmark.cpp')
| -rw-r--r-- | benchmarks/csmap_benchmark.cpp | 6 |
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() {
|
