ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change
on this file since 6e09f211 was
5013c62,
checked in by Thierry Delisle <tdelisle@…>, 7 years ago
|
added several benchmarks to measure creation, some work needs to be done on them
|
-
Property mode set to
100644
|
File size:
284 bytes
|
Line | |
---|
1 | #include <cstdlib> |
---|
2 | #include <cstdio> |
---|
3 | |
---|
4 | _Task MyThread { |
---|
5 | void main() {} |
---|
6 | }; |
---|
7 | |
---|
8 | int main(int argc, char* argv[]) { |
---|
9 | size_t n = 1000000; |
---|
10 | if( argc > 2 ) return 1; |
---|
11 | if( argc == 2 ) { |
---|
12 | n = atoi(argv[1]); |
---|
13 | } |
---|
14 | printf("%lu\n", n); |
---|
15 | for (size_t i = 0; i < n; i++) { |
---|
16 | MyThread m; |
---|
17 | } |
---|
18 | return 0; |
---|
19 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.