source: benchmark/ctxswitch/cfa_cor.cfa@ 8c9da33

ADT arm-eh ast-experimental enum forall-pointer-decay jacob/cs343-translation jenkins-sandbox new-ast new-ast-unique-expr pthread-emulation qualifiedEnum
Last change on this file since 8c9da33 was 2316525, checked in by Peter A. Buhr <pabuhr@…>, 6 years ago

update benchmarks for concurrency paper

  • Property mode set to 100644
File size: 351 bytes
Line 
1#include <kernel.hfa>
2#include <thread.hfa>
3
4#include "bench.h"
5
6coroutine C {} c;
7void main( __attribute__((unused)) C & ) {
8 while () {
9 suspend();
10 }
11}
12int main( int argc, char * argv[] ) {
13 BENCH_START()
14 BENCH(
15 for ( times ) {
16 resume( c );
17 },
18 result
19 )
20 printf( "%g\n", result );
21}
22
23// Local Variables: //
24// tab-width: 4 //
25// End: //
Note: See TracBrowser for help on using the repository browser.