Changes in benchmark/ctxswitch/cfa_cor.cfa [b4107c8:2316525]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/cfa_cor.cfa
rb4107c8 r2316525 4 4 #include "bench.h" 5 5 6 coroutine GreatSuspender {};7 void main( __attribute__((unused)) GreatSuspender & this) {8 while ( true) {6 coroutine C {} c; 7 void main( __attribute__((unused)) C & ) { 8 while () { 9 9 suspend(); 10 10 } … … 12 12 int main( int argc, char * argv[] ) { 13 13 BENCH_START() 14 GreatSuspender s;15 14 BENCH( 16 for ( i;times ) {17 resume( s);15 for ( times ) { 16 resume( c ); 18 17 }, 19 18 result
Note: See TracChangeset
for help on using the changeset viewer.