Changeset dfda49f
- Timestamp:
- Mar 10, 2020, 2:22:13 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 28c4f74
- Parents:
- ff489bf
- Location:
- benchmark
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
rff489bf rdfda49f 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Sat Jan 25 09:20:44202014 ## Update Count : 25 513 ## Last Modified On : Tue Mar 10 11:41:18 2020 14 ## Update Count : 258 15 15 ############################################################################### 16 16 … … 108 108 creation_cfa_coroutine_DURATION = 100000000 109 109 creation_cfa_coroutine_eager_DURATION = 10000000 110 creation_cfa_generator_DURATION = 1000000000 110 111 creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} 111 112 creation_cfa_thread_DURATION = 10000000 -
benchmark/Makefile.in
rff489bf rdfda49f 447 447 creation_cfa_coroutine_DURATION = 100000000 448 448 creation_cfa_coroutine_eager_DURATION = 10000000 449 creation_cfa_generator_DURATION = 1000000000 449 450 creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} 450 451 creation_cfa_thread_DURATION = 10000000 -
benchmark/creation/cfa_gen.cfa
rff489bf rdfda49f 1 #include " bench.h"1 #include "../bench.h" 2 2 3 struct C{3 generator G { 4 4 volatile int restart; // ensure compiler does not optimize away all the code 5 5 }; 6 void ?{}( C & c ) { c.restart = 0; }7 void main( C& ) {}6 void ?{}( G & g ) { g.restart = 0; } 7 void main( G & ) {} 8 8 9 9 int main( int argc, char * argv[] ) { … … 11 11 BENCH( 12 12 for ( times ) { 13 C c;13 G g; 14 14 }, 15 15 result -
benchmark/ctxswitch/cfa_cor.cfa
rff489bf rdfda49f 2 2 #include <thread.hfa> 3 3 4 #include " bench.h"4 #include "../bench.h" 5 5 6 coroutine C {} c;6 coroutine C {}; 7 7 void main( __attribute__((unused)) C & ) { 8 while() {8 for () { 9 9 suspend; 10 10 } 11 11 } 12 12 int main( int argc, char * argv[] ) { 13 C c; 13 14 BENCH_START() 14 15 BENCH( -
benchmark/ctxswitch/cfa_gen.cfa
rff489bf rdfda49f 1 1 #include "../bench.h" 2 2 3 typedef struct { 4 void * next; 5 } C; 6 7 void comain( C * c ) { 8 if ( __builtin_expect(c->next != 0, 1) ) goto *(c->next); 9 c->next = &&s1; 3 generator G {}; 4 void main( G & ) { 10 5 for () { 11 return; 12 s1: ; 6 suspend; 13 7 } 14 8 } 15 9 16 10 int main( int argc, char * argv[] ) { 11 G g; 17 12 BENCH_START() 18 C c = { 0 };19 13 BENCH( 20 14 for ( times ) { 21 comain( &c);15 resume( g ); 22 16 }, 23 17 result
Note: See TracChangeset
for help on using the changeset viewer.