summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cmap_benchmark2.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-26 18:48:25 +0100
committerTyge Løvset <[email protected]>2021-01-26 18:48:25 +0100
commit5c196be3cfa172ca521ced0cf5d9b7d0acec5b83 (patch)
treea99c5e14d55857bf53311a0b9f8a1636c566fe3a /benchmarks/cmap_benchmark2.cpp
parentdcf8d43f14d7116561957089192451b9ac832872 (diff)
downloadSTC-modified-5c196be3cfa172ca521ced0cf5d9b7d0acec5b83.tar.gz
STC-modified-5c196be3cfa172ca521ced0cf5d9b7d0acec5b83.zip
Fixed bug in csmap_clear() and in map benchmarks2's. Set picobench output default to concise_text.
Diffstat (limited to 'benchmarks/cmap_benchmark2.cpp')
-rw-r--r--benchmarks/cmap_benchmark2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/cmap_benchmark2.cpp b/benchmarks/cmap_benchmark2.cpp
index 54d6e7d9..cda8c15b 100644
--- a/benchmarks/cmap_benchmark2.cpp
+++ b/benchmarks/cmap_benchmark2.cpp
@@ -123,8 +123,8 @@ static void ins_and_erase_cmap_i(picobench::state& s)
stc64_srandom(seed);
c_forrange (s.iterations())
cmap_i_erase(&map, stc64_random());
- cmap_i_del(&map);
s.set_result(cmap_i_size(map));
+ cmap_i_del(&map);
}
#define P samples(S1).iterations({N1/4})