Changeset 2316525 for benchmark/ctxswitch/cfa_cor_then.cfa
- Timestamp:
- Jan 19, 2020, 4:16:27 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- f090750
- Parents:
- 9e63a2b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/cfa_cor_then.cfa
r9e63a2b r2316525 6 6 void noOp(void) {} 7 7 8 coroutine GreatSuspender {};8 coroutine C {} c; 9 9 10 void ?{}( GreatSuspender& this ) {10 void ?{}( C & this ) { 11 11 prime(this); 12 12 } 13 13 14 void main( __attribute__((unused)) GreatSuspender& this ) {15 while ( true) {14 void main( __attribute__((unused)) C & this ) { 15 while () { 16 16 suspend_then(noOp); 17 17 } … … 20 20 int main( int argc, char * argv[] ) { 21 21 BENCH_START() 22 GreatSuspender s;23 22 BENCH( 24 for ( i;times ) {25 resume( s);23 for ( times ) { 24 resume( c ); 26 25 }, 27 26 result
Note: See TracChangeset
for help on using the changeset viewer.