Skip to content

Commit

Permalink
Improve: MinWarmUpTime before spread ops
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Jan 20, 2025
1 parent a19fef3 commit f3473c3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions less_slow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2073,8 +2073,14 @@ static void spread_memory(bm::State &state, kernel_type_ kernel, std::size_t ali
for (auto _ : state) kernel(first.begin(), indices.begin(), second.begin(), size);
}

BENCHMARK_CAPTURE(spread_memory, gather_scalar, spread_gather_scalar)->Range(1 << 10, 1 << 20)->MinTime(5);
BENCHMARK_CAPTURE(spread_memory, scatter_scalar, spread_scatter_scalar)->Range(1 << 10, 1 << 20)->MinTime(5);
BENCHMARK_CAPTURE(spread_memory, gather_scalar, spread_gather_scalar)
->Range(1 << 10, 1 << 20)
->MinTime(5)
->MinWarmUpTime(1);
BENCHMARK_CAPTURE(spread_memory, scatter_scalar, spread_scatter_scalar)
->Range(1 << 10, 1 << 20)
->MinTime(5)
->MinWarmUpTime(1);

#if defined(__AVX512F__)
void spread_gather_avx512( //
Expand Down

0 comments on commit f3473c3

Please sign in to comment.