source: benchmark/creation/cfa_cor.cfa @ 96f5b30

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 96f5b30 was b4107c8, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

update existing benchmarks for changes to bench.h, add new benchmarks in new programming languages

  • Property mode set to 100644
File size: 389 bytes
RevLine 
[034165a]1#include <stdio.h>
[73abe95]2#include <coroutine.hfa>
[034165a]3
4#include "bench.h"
5
6coroutine MyCoroutine {};
[3351cc0]7void ?{} (MyCoroutine & this) {
8#ifdef EAGER
[70a141d4]9        resume(this);
[3351cc0]10#endif
11}
[dc33b5b]12void main(MyCoroutine &) {}
[034165a]13
[b4107c8]14int main( int argc, char * argv[] ) {
15        BENCH_START()
[034165a]16        BENCH(
[b4107c8]17                for ( i; times ) {
[034165a]18                        MyCoroutine m;
19                },
20                result
21        )
[b4107c8]22        printf( "%g\n", result );
[dc33b5b]23}
[b4107c8]24
25// Local Variables: //
26// tab-width: 4 //
27// End: //
Note: See TracBrowser for help on using the repository browser.