diff options
| author | Tyge Løvset <[email protected]> | 2021-12-19 12:21:44 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-12-19 12:21:44 +0100 |
| commit | 92b950333c6c7002bdbf1b60af44a249dc0cef9c (patch) | |
| tree | 4b1acfcdba0bd940f829c53910587e27b5e0af90 /benchmarks/picobench/picobench_cmap.cpp | |
| parent | 183a89859ba9914ee0546e4482b40be199e52292 (diff) | |
| download | STC-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/picobench/picobench_cmap.cpp')
| -rw-r--r-- | benchmarks/picobench/picobench_cmap.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/benchmarks/picobench/picobench_cmap.cpp b/benchmarks/picobench/picobench_cmap.cpp index 330c5e51..a045cb7c 100644 --- a/benchmarks/picobench/picobench_cmap.cpp +++ b/benchmarks/picobench/picobench_cmap.cpp @@ -91,7 +91,7 @@ static void ins_and_erase_cmap_i(picobench::state& s) c_forrange (s.iterations())
cmap_i_erase(&map, stc64_random());
s.set_result(cmap_i_size(map));
- cmap_i_del(&map);
+ cmap_i_drop(&map);
}
static void ins_and_erase_cmap_x(picobench::state& s)
@@ -111,7 +111,7 @@ static void ins_and_erase_cmap_x(picobench::state& s) c_forrange (s.iterations())
cmap_x_erase(&map, stc64_random());
s.set_result(cmap_x_size(map));
- cmap_x_del(&map);
+ cmap_x_drop(&map);
}
#define P samples(S1).iterations({N1/4})
@@ -153,7 +153,7 @@ static void ins_and_access_cmap_i(picobench::state& s) c_forrange (N1)
result += ++cmap_i_emplace(&map, stc64_random() & mask, 0).ref->second;
s.set_result(result);
- cmap_i_del(&map);
+ cmap_i_drop(&map);
}
#define P samples(S1).iterations({N1, N1, N1, N1}).args({18, 23, 25, 31})
@@ -212,8 +212,8 @@ static void ins_and_access_cmap_s(picobench::state& s) result += cmap_str_erase(&map, str.str);
}
s.set_result(result + cmap_str_size(map));
- cstr_del(&str);
- cmap_str_del(&map);
+ cstr_drop(&str);
+ cmap_str_drop(&map);
}
#define P samples(S1).iterations({N1/5, N1/5, N1/5, N1/10, N1/40}).args({13, 7, 8, 100, 1000})
@@ -285,7 +285,7 @@ static void iterate_cmap_x(picobench::state& s) result += i.ref->second;
}
s.set_result(result);
- cmap_x_del(&map);
+ cmap_x_drop(&map);
}
|
