summaryrefslogtreecommitdiffhomepage
path: root/cmap_test.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-03-11 19:09:38 +0100
committerGitHub <[email protected]>2020-03-11 19:09:38 +0100
commita6653bfb5ec8e04bef66ae0b0fead08662c986a4 (patch)
tree0534cf02bdffbbc211640b9d9bbd6ce9bb7c1e9e /cmap_test.c
parent18399f0b3000ec4d949aa45e3e72fbc7db651d41 (diff)
downloadSTC-modified-a6653bfb5ec8e04bef66ae0b0fead08662c986a4.tar.gz
STC-modified-a6653bfb5ec8e04bef66ae0b0fead08662c986a4.zip
Added vector params
Diffstat (limited to 'cmap_test.c')
-rw-r--r--cmap_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmap_test.c b/cmap_test.c
index 563c27c7..c02b25cd 100644
--- a/cmap_test.c
+++ b/cmap_test.c
@@ -79,7 +79,7 @@ void stringSpeed(int limit) {
clock_t before = clock();
for (int n = 0; n < limit; ++n) {
p = c_string_find(s, 0, search + (n % 100));
- if (p != c_string_npos) x += p;
+ if (p != c_string_npos) x += p;
}
clock_t diff = clock() - before;
printf("string length = %llu / %llu, sum %llu speed: %f\n", c_string_size(s), c_string_capacity(s), x, 1.0 * diff / CLOCKS_PER_SEC);