source:
benchmark/creation/upp_cor.cc@
ca20b07
| Last change on this file since ca20b07 was c12869e, checked in by , 6 years ago | |
|---|---|
|
|
| File size: 323 bytes | |
| Rev | Line | |
|---|---|---|
| [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] | 11 | int 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.