source:
benchmark/creation/upp_cor.cc@
38e266ca
Last change on this file since 38e266ca was c12869e, checked in by , 6 years ago | |
---|---|
|
|
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 | |
11 | int 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.