summaryrefslogtreecommitdiffhomepage
path: root/benchmark.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'benchmark.cpp')
-rw-r--r--benchmark.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/benchmark.cpp b/benchmark.cpp
index 4f5af61e..d5b98c14 100644
--- a/benchmark.cpp
+++ b/benchmark.cpp
@@ -7,6 +7,7 @@
declare_CMap(ii, int64_t, int64_t);
declare_CVector_string(s);
+declare_CMap(ix, short, short);
#define RAND() rand() * rand()
@@ -80,6 +81,8 @@ int main()
printf("umap: sz: %llu, bk: %llu, time: %.02f, sum: %llu, ins: %llu del: %llu\n", map2.size(), map2.bucket_count(), (float) difference / CLOCKS_PER_SEC, checksum, inserted, erased);
map2.clear();
+ printf("ix entry size %llu\n", sizeof(CMapEntry_ix));
+
CVector_s names = cvector_initializer;
cvector_s_push(&names, cstring_make("Robert"));
cvector_s_push(&names, cstring_make("Johnny"));