| 13 | |
| 14 | template <typename F> |
| 15 | static void BM_VariableOp(benchmark::State& state, F&& op) { |
| 16 | auto v = make(); |
| 17 | int i = 0; |
| 18 | for (auto _: state) { |
| 19 | op(v, i + 1, i + 1); |
| 20 | i = (i + 1) % max_vars; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | static void BM_VariableGet(benchmark::State& state) { |
| 25 | volatile int x = 0; |
no test coverage detected