Skip to content

Commit

Permalink
(bench) 🤦 sort datasets before doing spot intersection with int64s
Browse files Browse the repository at this point in the history
  • Loading branch information
uatuko committed Jun 6, 2024
1 parent 6a783de commit e1c4f58
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bench/algorithms_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,9 @@ BENCHMARK([](benchmark::State &st) {
right.emplace_back(std::rand());
}

std::sort(left.begin(), left.end());
std::sort(right.begin(), right.end());

std::size_t ops = 0;
std::size_t cost = 0;
for (auto _ : st) {
Expand Down

0 comments on commit e1c4f58

Please sign in to comment.