diff options
| author | Tyge Løvset <[email protected]> | 2020-03-23 21:21:25 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-23 21:21:25 +0100 |
| commit | adcc369478f5e9fea6bd00f119257eea3f8d4fb1 (patch) | |
| tree | d1a0fd20c9d5c0c06e23e6a99ab9535c6be11904 /benchmark.cpp | |
| parent | a0639aa447d2ea63f01a84c5ba8cfc7057d34829 (diff) | |
| download | STC-modified-adcc369478f5e9fea6bd00f119257eea3f8d4fb1.tar.gz STC-modified-adcc369478f5e9fea6bd00f119257eea3f8d4fb1.zip | |
Add files via upload
Diffstat (limited to 'benchmark.cpp')
| -rw-r--r-- | benchmark.cpp | 7 |
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);
|
