source: benchmark/ctxswitch/cfa_gen.cfa @ 1f11818

Last change on this file since 1f11818 was dfda49f, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

update benchmarks with new generator implementation

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