Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Add direct exception passing for awaits for perf test
Added direct exception passing case for coroutines. Exception are are passed directly after awaited future has been resolved with return_exception_ptr. This option can be a balance between of need frequent exception passing and convenience of using coroutines. The limitations of a such usage the return_exception_ptr cannot be used with void futures. test iterations median mad min max allocs tasks inst cycles chain.then_value 31708032 31.415ns 0.177ns 31.175ns 31.592ns 1.031 1.062 320.1 118.6 chain.await_value 20403392 49.203ns 0.048ns 48.914ns 49.260ns 1.063 1.094 456.9 186.1 chain.await_value_as_future 18967008 52.973ns 0.090ns 52.548ns 53.483ns 1.063 1.094 482.4 201.0 chain.then_exception 30921504 32.120ns 0.147ns 31.962ns 33.095ns 1.063 1.062 321.2 122.3 chain.await_exception 504704 1.975us 9.888ns 1.966us 1.989us 2.125 1.094 24397.8 7498.7 chain.await_exception_as_future 17931328 56.013ns 0.127ns 55.839ns 56.301ns 1.094 1.094 546.2 212.3 Closes #2653
- Loading branch information