From c952b72df544e5d4cb555140f4d0c3f251444b45 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 2 Oct 2021 11:35:45 +0200 Subject: Fixed benchmarks regarding cmap find bug. --- benchmarks/cvec_benchmark.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks/cvec_benchmark.cpp') diff --git a/benchmarks/cvec_benchmark.cpp b/benchmarks/cvec_benchmark.cpp index 755659a7..5cc2fb34 100644 --- a/benchmarks/cvec_benchmark.cpp +++ b/benchmarks/cvec_benchmark.cpp @@ -84,8 +84,8 @@ Sample test_stc_vector() { c_forrange (N) cvec_x_push_back(&con, stc64_random() & mask2); s.test[FIND].t1 = clock(); size_t sum = 0; - cvec_x_iter_t it; - //c_forrange (S) if ((it = cvec_x_find(&con, stc64_random() & mask2)).ref) sum += *it.ref; + //cvec_x_iter_t it, end = cvec_x_end(&con); + //c_forrange (S) if ((it = cvec_x_find(&con, stc64_random() & mask2)).ref != end.ref) sum += *it.ref; s.test[FIND].t2 = clock(); s.test[FIND].sum = sum; s.test[ITER].t1 = clock(); -- cgit v1.2.3