source:
benchmark/ctxswitch/cfa_gen.cfa
@
b59c21a
Last change on this file since b59c21a was dfda49f, checked in by , 5 years ago | |
---|---|
|
|
File size: 286 bytes |
Rev | Line | |
---|---|---|
[fe065c3] | 1 | #include "../bench.h" |
2 | ||
[dfda49f] | 3 | generator G {}; |
4 | void main( G & ) { | |
[fe065c3] | 5 | for () { |
[dfda49f] | 6 | suspend; |
[fe065c3] | 7 | } |
8 | } | |
9 | ||
[b4107c8] | 10 | int 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.