Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Reduce number of repetitions
  • Loading branch information
AntoinePrv committed Oct 1, 2026
commit 818e5e5bb059448594ef6a10ba349f4ef2ffa743
2 changes: 1 addition & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ jobs:
uses: CodSpeedHQ/action@v5
with:
mode: ${{ matrix.sys.mode }}
run: ./build/benchmark/benchmark_xsimd_algorithm
run: ./build/benchmark/benchmark_xsimd_algorithm --benchmark_repetitions=3
4 changes: 0 additions & 4 deletions benchmark/bench_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,9 @@ namespace
bool const registered = []
{
register_benches<xsimd::test::sqrt_op<float>>();
register_benches<xsimd::test::sqrt_op<double>>();
register_benches<xsimd::test::abs_op<float>>();
register_benches<xsimd::test::abs_op<double>>();
register_benches<xsimd::test::exp_op<float>>();
register_benches<xsimd::test::exp_op<double>>();
register_binary_benches<xsimd::test::add_op<std::int32_t>>();
register_binary_benches<xsimd::test::multiply_op<float>>();
register_binary_benches<xsimd::test::mixed_multiply_op>();
return true;
}();
Expand Down
11 changes: 3 additions & 8 deletions benchmark/bench_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,9 @@ namespace xsimd::bench
{
constexpr auto batch_size = static_cast<std::int64_t>(xsimd::batch<T>::size);

auto sizes = std::vector<std::int64_t> {};
for (std::int64_t size : { 64, 1024, 65536, 1 << 21 })
{
auto const whole = size - (size % batch_size);
sizes.push_back(whole);
sizes.push_back(whole + batch_size / 2 + 1);
}
return sizes;
return std::vector<std::int64_t> {
64, 67, 1024, 1027, 65536, 2097152
};
}

template <typename T>
Expand Down