Skip to content

Commit

Permalink
benchmark: Refactor last stone weight
Browse files Browse the repository at this point in the history
  • Loading branch information
oboukli committed Oct 20, 2024
1 parent ad9dc60 commit 8599e55
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions benchmark/last_stone_weight_benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ TEST_CASE("Last stone weight benchmarking", "[benchmark][last_stone_weight]")
.run(
NAMEOF_RAW(naive::last_stone_weight<Iter, Iter>).c_str(),
[]() noexcept {
std::vector<int> stones{
std::vector stones{
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,
37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79,
83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,
Expand All @@ -47,7 +47,7 @@ TEST_CASE("Last stone weight benchmarking", "[benchmark][last_stone_weight]")
.run(
NAMEOF_RAW(partially_sorted::last_stone_weight<Iter, Iter>).c_str(),
[]() noexcept {
std::vector<int> stones{
std::vector stones{
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,
37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79,
83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,
Expand All @@ -65,7 +65,7 @@ TEST_CASE("Last stone weight benchmarking", "[benchmark][last_stone_weight]")
.run(
NAMEOF_RAW(priority_queue_based::last_stone_weight).c_str(),
[]() noexcept {
std::vector<int> stones{
std::vector stones{
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,
37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79,
83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,
Expand All @@ -83,7 +83,7 @@ TEST_CASE("Last stone weight benchmarking", "[benchmark][last_stone_weight]")
.run(
NAMEOF_RAW(heapified::last_stone_weight<Iter, Iter>).c_str(),
[]() noexcept {
std::vector<int> stones{
std::vector stones{
2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31,
37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79,
83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137,
Expand Down

0 comments on commit 8599e55

Please sign in to comment.