summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/plotbench/csmap_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-12-29 15:14:37 +0100
committerGitHub <[email protected]>2021-12-29 15:14:37 +0100
commita53b2f4269951e0b5340723670137b4fdf96534c (patch)
treee5d36c28d0fd548873216426bb00a6b59d2730dd /benchmarks/plotbench/csmap_benchmark.cpp
parent183a89859ba9914ee0546e4482b40be199e52292 (diff)
parent92f5421493932d00e63b33152331a36cc4fc9491 (diff)
downloadSTC-modified-a53b2f4269951e0b5340723670137b4fdf96534c.tar.gz
STC-modified-a53b2f4269951e0b5340723670137b4fdf96534c.zip
Merge pull request #17 from tylov/version3
Version3 Breaking changes are covered by the migration guide in the NEWS section in README.md
Diffstat (limited to 'benchmarks/plotbench/csmap_benchmark.cpp')
-rw-r--r--benchmarks/plotbench/csmap_benchmark.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmarks/plotbench/csmap_benchmark.cpp b/benchmarks/plotbench/csmap_benchmark.cpp
index 47762791..e7603b58 100644
--- a/benchmarks/plotbench/csmap_benchmark.cpp
+++ b/benchmarks/plotbench/csmap_benchmark.cpp
@@ -73,8 +73,8 @@ Sample test_stc_map() {
stc64_srandom(seed);
s.test[INSERT].t1 = clock();
container con = csmap_x_init();
- c_forrange (i, N/2) csmap_x_emplace(&con, stc64_random() & mask1, i);
- c_forrange (i, N/2) csmap_x_emplace(&con, i, i);
+ c_forrange (i, N/2) csmap_x_insert(&con, stc64_random() & mask1, i);
+ c_forrange (i, N/2) csmap_x_insert(&con, i, i);
s.test[INSERT].t2 = clock();
s.test[INSERT].sum = csmap_x_size(con);
stc64_srandom(seed);
@@ -82,12 +82,12 @@ Sample test_stc_map() {
c_forrange (N) csmap_x_erase(&con, stc64_random() & mask1);
s.test[ERASE].t2 = clock();
s.test[ERASE].sum = csmap_x_size(con);
- csmap_x_del(&con);
+ csmap_x_drop(&con);
}{
container con = csmap_x_init();
stc64_srandom(seed);
- c_forrange (i, N/2) csmap_x_emplace(&con, stc64_random() & mask1, i);
- c_forrange (i, N/2) csmap_x_emplace(&con, i, i);
+ c_forrange (i, N/2) csmap_x_insert(&con, stc64_random() & mask1, i);
+ c_forrange (i, N/2) csmap_x_insert(&con, i, i);
stc64_srandom(seed);
s.test[FIND].t1 = clock();
size_t sum = 0;
@@ -103,7 +103,7 @@ Sample test_stc_map() {
s.test[ITER].t2 = clock();
s.test[ITER].sum = sum;
s.test[DESTRUCT].t1 = clock();
- csmap_x_del(&con);
+ csmap_x_drop(&con);
}
s.test[DESTRUCT].t2 = clock();
s.test[DESTRUCT].sum = 0;