Changeset b067d9b for benchmark/ctxswitch/cfa_thrd2.cfa
- Timestamp:
- Oct 29, 2019, 4:01:24 PM (6 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:
- 773db65, 9421f3d8
- Parents:
- 7951100 (diff), 8364209 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 moved
-
benchmark/ctxswitch/cfa_thrd2.cfa (moved) (moved from src/benchmark/ctxswitch/cfa_thrd2.c ) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/ctxswitch/cfa_thrd2.cfa
r7951100 rb067d9b 1 #include <stdio.h> 2 #include <thread> 1 #include <thread.hfa> 3 2 4 3 #include "bench.h" … … 8 7 thread Fibre {}; 9 8 10 void main( Fibre & this) {9 void main(__attribute__((unused)) Fibre & this) { 11 10 while(!done) { 12 11 yield(); … … 17 16 Fibre f1; 18 17 BENCH( 19 for ( size_t i = 0; i < n; i++) {18 for ( i; n ) { 20 19 yield(); 21 20 }, … … 23 22 ) 24 23 25 printf("% llu\n", result);24 printf("%g\n", result); 26 25 done = true; 27 26 return 0;
Note:
See TracChangeset
for help on using the changeset viewer.