mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Remove benchmark::internal::Benchmark* from all benchmarks
libeigen/eigen!2332 Co-authored-by: Rasmus Munk Larsen <rlarsen@nvidia.com>
This commit is contained in:
@@ -52,13 +52,5 @@ static void BM_SpMV_Transpose(benchmark::State& state) {
|
||||
state.counters["nnz"] = sm.nonZeros();
|
||||
}
|
||||
|
||||
static void SpMVSizes(::benchmark::Benchmark* b) {
|
||||
for (int n : {1000, 10000, 100000}) {
|
||||
for (int nnz : {7, 20, 50}) {
|
||||
b->Args({n, nnz});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BENCHMARK(BM_SpMV)->Apply(SpMVSizes);
|
||||
BENCHMARK(BM_SpMV_Transpose)->Apply(SpMVSizes);
|
||||
BENCHMARK(BM_SpMV)->ArgsProduct({{1000, 10000, 100000}, {7, 20, 50}});
|
||||
BENCHMARK(BM_SpMV_Transpose)->ArgsProduct({{1000, 10000, 100000}, {7, 20, 50}});
|
||||
|
||||
Reference in New Issue
Block a user