| 27 | struct BenchFixture : benchmark::Fixture |
| 28 | { |
| 29 | void SetUp(benchmark::State &) |
| 30 | { |
| 31 | y.reserve(N); |
| 32 | x.reserve(N); |
| 33 | t.reserve(N); |
| 34 | M.reserve(N); |
| 35 | dotprod.reserve(N); |
| 36 | for (std::size_t i = 0; i < N; ++i) |
| 37 | { |
| 38 | y.push_back(ResVec::Zero()); |
| 39 | x.push_back(InVec::Random()); |
| 40 | t.push_back(InVec::Random()); |
| 41 | M.push_back(Mat::Random()); |
| 42 | dotprod.push_back(0); |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | void TearDown(benchmark::State &) |
| 47 | { |
nothing calls this directly
no outgoing calls
no test coverage detected