#include #include #include "bench.h" void noOp(void) {} coroutine GreatSuspender {}; void ?{}( GreatSuspender & this ) { prime(this); } void main( __attribute__((unused)) GreatSuspender & this ) { while( true ) { suspend_then(noOp); } } int main(int argc, char* argv[]) { GreatSuspender s; BENCH( for ( i; n ) { resume( s ); }, result ) printf("%g\n", result); }