summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/plotbench/cmap_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-19 12:21:44 +0100
committerTyge Løvset <[email protected]>2021-12-19 12:21:44 +0100
commit92b950333c6c7002bdbf1b60af44a249dc0cef9c (patch)
tree4b1acfcdba0bd940f829c53910587e27b5e0af90 /benchmarks/plotbench/cmap_benchmark.cpp
parent183a89859ba9914ee0546e4482b40be199e52292 (diff)
downloadSTC-modified-92b950333c6c7002bdbf1b60af44a249dc0cef9c.tar.gz
STC-modified-92b950333c6c7002bdbf1b60af44a249dc0cef9c.zip
First commit for Version 3 of STC. Main changes are consistent rename of '_del' to '_drop' and '_compare' to '_cmp'.
Also i_key_ref (earlier i_key_sptr) and i_val_ref replaced by more general i_key_bind/i_val_bind.
Diffstat (limited to 'benchmarks/plotbench/cmap_benchmark.cpp')
-rw-r--r--benchmarks/plotbench/cmap_benchmark.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/benchmarks/plotbench/cmap_benchmark.cpp b/benchmarks/plotbench/cmap_benchmark.cpp
index 4c9c6c16..16aec8c0 100644
--- a/benchmarks/plotbench/cmap_benchmark.cpp
+++ b/benchmarks/plotbench/cmap_benchmark.cpp
@@ -82,7 +82,7 @@ Sample test_stc_unordered_map() {
c_forrange (N) cmap_x_erase(&con, stc64_random() & mask1);
s.test[ERASE].t2 = clock();
s.test[ERASE].sum = cmap_x_size(con);
- cmap_x_del(&con);
+ cmap_x_drop(&con);
}{
container con = cmap_x_init();
stc64_srandom(seed);
@@ -103,7 +103,7 @@ Sample test_stc_unordered_map() {
s.test[ITER].t2 = clock();
s.test[ITER].sum = sum;
s.test[DESTRUCT].t1 = clock();
- cmap_x_del(&con);
+ cmap_x_drop(&con);
}
s.test[DESTRUCT].t2 = clock();
s.test[DESTRUCT].sum = 0;