| 9 | |
| 10 | |
| 11 | int main () { |
| 12 | boost::hana::benchmark::measure([] { |
| 13 | long long result = 0; |
| 14 | for (int iteration = 0; iteration < 1 << 10; ++iteration) { |
| 15 | std::array<int, <%= input_size %>> values = {{ |
| 16 | <%= input_size.times.map { 'std::rand()' }.join(', ') %> |
| 17 | }}; |
| 18 | |
| 19 | result += std::accumulate(values.begin(), values.end(), 0); |
| 20 | } |
| 21 | }); |
| 22 | } |
nothing calls this directly
no test coverage detected