source: benchmark/creation/upp_cor.cc @ 2b5be17

ADTarm-ehast-experimentalenumforall-pointer-decayjacob/cs343-translationnew-astnew-ast-unique-exprpthread-emulationqualifiedEnum
Last change on this file since 2b5be17 was c12869e, checked in by Peter A. Buhr <pabuhr@…>, 5 years ago

update benchmarks for concurrency paper

  • Property mode set to 100644
File size: 323 bytes
Line 
1#include <cstdio>
2
3#include "bench.h"
4
5_Coroutine MyCor {
6        void main() {}
7  public:
8        MyCor() { resume(); }
9};
10
11int main( int argc, char * argv[] ) {
12        BENCH_START()
13        BENCH(
14                for (size_t i = 0; i < times; i++) {
15                        MyCor m;
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.