source: benchmark/creation/upp_cor.cc @ 431cd4f

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

update benchmarks for concurrency paper

  • Property mode set to 100644
File size: 323 bytes
RevLine 
[034165a]1#include <cstdio>
2
3#include "bench.h"
4
5_Coroutine MyCor {
6        void main() {}
[c12869e]7  public:
8        MyCor() { resume(); }
[034165a]9};
10
[b4107c8]11int main( int argc, char * argv[] ) {
12        BENCH_START()
[034165a]13        BENCH(
[b4107c8]14                for (size_t i = 0; i < times; i++) {
[034165a]15                        MyCor m;
16                },
17                result
18        )
[b4107c8]19        printf( "%g\n", result );
[dc33b5b]20}
[b4107c8]21
22// Local Variables: //
23// tab-width: 4 //
24// End: //
Note: See TracBrowser for help on using the repository browser.