summaryrefslogtreecommitdiffhomepage
path: root/benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-23 21:21:25 +0100
committerGitHub <[email protected]>2020-03-23 21:21:25 +0100
commitadcc369478f5e9fea6bd00f119257eea3f8d4fb1 (patch)
treed1a0fd20c9d5c0c06e23e6a99ab9535c6be11904 /benchmark.cpp
parenta0639aa447d2ea63f01a84c5ba8cfc7057d34829 (diff)
downloadSTC-modified-adcc369478f5e9fea6bd00f119257eea3f8d4fb1.tar.gz
STC-modified-adcc369478f5e9fea6bd00f119257eea3f8d4fb1.zip
Add files via upload
Diffstat (limited to 'benchmark.cpp')
-rw-r--r--benchmark.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/benchmark.cpp b/benchmark.cpp
index 38f76b8c..7564820c 100644
--- a/benchmark.cpp
+++ b/benchmark.cpp
@@ -107,14 +107,17 @@ int main()
MAP_TEST2(RMAP, ii)
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"));
cvector_s_push(&names, cstring_make("Anne"));
cvector_s_push(&names, cstring_make("Ruth"));
cvector_s_push(&names, cstring_make("Burt"));
-
+
+ size_t res = cvector_s_find(names, cstring_tmp1k("Ruth"));
+ printf("found %llu\n", res);
+
cvector_s_sort(&names);
c_foreach (i, cvector_s, names)
printf("%s\n", i.item->str);