Changeset 9b443c7f for src/benchmark
- Timestamp:
- Mar 15, 2017, 5:02:25 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f2e40a9f
- Parents:
- 5a3ac84 (diff), 29f44a74 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- src/benchmark
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/CorCtxSwitch.c
r5a3ac84 r9b443c7f 1 1 #include <fstream> 2 2 #include <stdlib> 3 #include <thread s>3 #include <thread> 4 4 5 5 #include <unistd.h> // sysconf … … 24 24 25 25 struct GreatSuspender { 26 coroutine c;26 coroutine_desc c; 27 27 }; 28 28 -
src/benchmark/ThrdCtxSwitch.c
r5a3ac84 r9b443c7f 1 1 #include <fstream> 2 2 #include <stdlib> 3 #include <thread s>3 #include <thread> 4 4 5 5 #include <unistd.h> // sysconf -
src/benchmark/bench.c
r5a3ac84 r9b443c7f 2 2 #include <fstream> 3 3 #include <stdlib> 4 #include <thread s>4 #include <thread> 5 5 6 6 #include <unistd.h> // sysconf … … 86 86 //======================================= 87 87 88 struct CoroutineDummy { coroutine c; };88 struct CoroutineDummy { coroutine_desc c; }; 89 89 DECL_COROUTINE(CoroutineDummy); 90 90 void main(CoroutineDummy * this) {} … … 119 119 struct CoroutineResume { 120 120 int N; 121 coroutine c;121 coroutine_desc c; 122 122 }; 123 123 … … 150 150 //======================================= 151 151 152 struct ThreadDummy { thread t; };152 struct ThreadDummy { thread_desc t; }; 153 153 DECL_THREAD(ThreadDummy); 154 154 void main(ThreadDummy * this) {} … … 180 180 int N; 181 181 long long result; 182 thread t;182 thread_desc t; 183 183 }; 184 184 -
src/benchmark/csv-data.c
r5a3ac84 r9b443c7f 1 1 #include <fstream> 2 2 #include <stdlib> 3 #include <thread s>3 #include <thread> 4 4 5 5 extern "C" { … … 26 26 27 27 struct GreatSuspender { 28 coroutine c;28 coroutine_desc c; 29 29 }; 30 30
Note: See TracChangeset
for help on using the changeset viewer.