Skip to content

Commit

Permalink
linalg::zero benchmark has been moved to Misc_benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
vigsterkr committed May 25, 2018
1 parent af2ea4c commit d849077
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions src/shogun/mathematics/linalg/backend/eigen/BasicOps_benchmark.cc
Expand Up @@ -21,16 +21,6 @@ void BM_LinAlg_SGVector_scale(benchmark::State& state)
}
}

template<typename T>
void BM_LinAlg_SGVector_zero(benchmark::State& state)
{
for (auto _ : state)
{
SGVector<T> v(state.range(0));
linalg::zero(v);
}
}

template<typename T>
void BM_SGVector_scale(benchmark::State& state)
{
Expand All @@ -41,16 +31,6 @@ void BM_SGVector_scale(benchmark::State& state)
}
}

template<typename T>
void BM_SGVector_zero(benchmark::State& state)
{
for (auto _ : state)
{
SGVector<T> v(state.range(0));
v.zero();
}
}

BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_scale, int32_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_scale, int64_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_scale, float32_t)->Range(8, 8<<10);
Expand All @@ -61,15 +41,4 @@ BENCHMARK_TEMPLATE(BM_SGVector_scale, int64_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_SGVector_scale, float32_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_SGVector_scale, float64_t)->Range(8, 8<<10);

BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_zero, int32_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_zero, int64_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_zero, float32_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_LinAlg_SGVector_zero, float64_t)->Range(8, 8<<10);

BENCHMARK_TEMPLATE(BM_SGVector_zero, int32_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_SGVector_zero, int64_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_SGVector_zero, float32_t)->Range(8, 8<<10);
BENCHMARK_TEMPLATE(BM_SGVector_zero, float64_t)->Range(8, 8<<10);


}

0 comments on commit d849077

Please sign in to comment.