- Timestamp:
- May 2, 2017, 3:14:19 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:
- 1167cd4, 39c5ea3, 9042795
- Parents:
- a933dcf4
- Location:
- src/benchmark
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/CorCtxSwitch.c
ra933dcf4 rb510ac2 23 23 } // Time 24 24 25 struct GreatSuspender { 26 coroutine_desc __cor; 27 }; 28 29 DECL_COROUTINE(GreatSuspender); 25 coroutine GreatSuspender {}; 30 26 31 27 void ?{}( GreatSuspender * this ) { -
src/benchmark/bench.c
ra933dcf4 rb510ac2 86 86 //======================================= 87 87 88 struct CoroutineDummy { coroutine_desc __cor; }; 89 DECL_COROUTINE(CoroutineDummy); 88 coroutine CoroutineDummy {}; 90 89 void main(CoroutineDummy * this) {} 91 90 … … 117 116 } 118 117 119 structCoroutineResume {118 coroutine CoroutineResume { 120 119 int N; 121 coroutine_desc __cor;122 120 }; 123 124 DECL_COROUTINE(CoroutineResume);125 121 126 122 void ?{}(CoroutineResume* this, int N) { … … 150 146 //======================================= 151 147 152 struct ThreadDummy { thread_desc __thrd; }; 153 DECL_THREAD(ThreadDummy); 148 thread ThreadDummy {}; 154 149 void main(ThreadDummy * this) {} 155 150 … … 177 172 } 178 173 179 structContextSwitch {174 thread ContextSwitch { 180 175 int N; 181 176 long long result; 182 thread_desc __thrd;183 177 }; 184 185 DECL_THREAD(ContextSwitch);186 178 187 179 void main(ContextSwitch * this) { … … 241 233 DynamicTaskCreateDelete( NoOfTimes ); 242 234 { 243 scoped(ContextSwitch)dummy = { (int)NoOfTimes }; // context switch235 ContextSwitch dummy = { (int)NoOfTimes }; // context switch 244 236 } 245 237 sout | "\t" | endl; -
src/benchmark/csv-data.c
ra933dcf4 rb510ac2 25 25 } // Time 26 26 27 struct GreatSuspender { 28 coroutine_desc __cor; 29 }; 30 31 DECL_COROUTINE(GreatSuspender); 27 coroutine GreatSuspender {}; 32 28 33 29 void ?{}( GreatSuspender * this ) {
Note: See TracChangeset
for help on using the changeset viewer.