MCPcopy Create free account
hub / github.com/alibaba/async_simple / f

Function f

benchmarks/PureSwitch.bench.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 14

co_spawn_entry_pointFunction · 0.85
use_future.hppFile · 0.85
promise_invoke_and_setFunction · 0.85
thenImplMethod · 0.85
TEST_FFunction · 0.85
applyValueMethod · 0.85
TEST_FFunction · 0.85
collectAllFunction · 0.85
TESTFunction · 0.85
Lazy_same_read_benchFunction · 0.85

Calls

no outgoing calls

Tested by 4

TEST_FFunction · 0.68
applyValueMethod · 0.68
TEST_FFunction · 0.68
TESTFunction · 0.68