9 Mar
2015
9 Mar
'15
5:10 p.m.
On 03/05/2015 04:32 PM, TONGARI J wrote:
You can find a more detailed description on the github page, if you want to know some number about performance, from a rough test borrowed from Boost.Coroutine (symmetric/performance_switch.cpp), the avg cpu cycles for context-switch are:
Boost.Coroutine: 40 cycles CO2: 16 cycles built-in await: 9 cycles
I am curious about the performance difference. How much context does CO2 preserve during a context-switch?