| 56 | Handle handle_; |
| 57 | }; |
| 58 | Generator<int> f() { |
| 59 | [[maybe_unused]] int i = 0; |
| 60 | while (true) { |
| 61 | co_yield i; |
| 62 | i++; |
| 63 | } |
| 64 | } |
| 65 | void Generator_pure_switch_bench(benchmark::State &state) { |
| 66 | int num = state.range(0); |
| 67 | SimpleExecutor e(1); |
no outgoing calls