diff options
| author | Tyge Løvset <[email protected]> | 2021-10-02 11:35:45 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-02 11:35:45 +0200 |
| commit | c952b72df544e5d4cb555140f4d0c3f251444b45 (patch) | |
| tree | eb450502f5313af5cea7f52450193c08ac2aad17 /benchmarks/cvec_benchmark.cpp | |
| parent | 09a07970445dc34b986b1836679616ab8de81792 (diff) | |
| download | STC-modified-c952b72df544e5d4cb555140f4d0c3f251444b45.tar.gz STC-modified-c952b72df544e5d4cb555140f4d0c3f251444b45.zip | |
Fixed benchmarks regarding cmap find bug.
Diffstat (limited to 'benchmarks/cvec_benchmark.cpp')
| -rw-r--r-- | benchmarks/cvec_benchmark.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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();
|
