source: benchmark/ctxswitch/cfa_gen.cfa @ 365e423

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 365e423 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
RevLine 
[fe065c3]1#include "../bench.h"
2
[dfda49f]3generator G {};
4void main( G & ) {
[fe065c3]5        for () {
[dfda49f]6                suspend;
[fe065c3]7        }
8}
9
[b4107c8]10int main( int argc, char * argv[] ) {
[dfda49f]11        G g;
[b4107c8]12        BENCH_START()
[fe065c3]13        BENCH(
[2316525]14                for ( times ) {
[dfda49f]15                        resume( g );
[fe065c3]16                },
17                result
18        )
[b4107c8]19        printf( "%g\n", result );
[fe065c3]20}
[b4107c8]21
22// Local Variables: //
23// tab-width: 4 //
24// End: //
Note: See TracBrowser for help on using the repository browser.