diff options
| author | Tyge Løvset <[email protected]> | 2020-03-19 16:11:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-19 16:11:52 +0100 |
| commit | fb854a3bb3a358ae5f8089c08915e6f82f4499fa (patch) | |
| tree | ff26e50e465759719919eaa052ffb107b226e6e7 /benchmark.cpp | |
| parent | 7eac0fe0322ca96a6b7b80681fe86807e76a3e75 (diff) | |
| download | STC-modified-fb854a3bb3a358ae5f8089c08915e6f82f4499fa.tar.gz STC-modified-fb854a3bb3a358ae5f8089c08915e6f82f4499fa.zip | |
Add files via upload
Diffstat (limited to 'benchmark.cpp')
| -rw-r--r-- | benchmark.cpp | 3 |
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"));
|
