Changeset b4107c8 for benchmark/schedext/upp.cc
- Timestamp:
- Jan 7, 2020, 3:50:56 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 580c11b
- Parents:
- 846c026
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/schedext/upp.cc
r846c026 rb4107c8 3 3 #include "bench.h" 4 4 5 int argc;6 char** argv;7 5 volatile int go = 0; 8 6 … … 13 11 int __attribute__((noinline)) wait() { 14 12 go = 1; 15 BENCH( 16 for (size_t i = 0; i < n; i++) { 17 _Accept(call); 18 }, 19 result 20 ) 21 22 printf("%g\n", result); 13 for (size_t i = 0; i < times; i++) { 14 _Accept(call); 15 } 23 16 go = 0; 24 17 return 0; … … 31 24 void main() { 32 25 while(go == 0) { yield(); } 33 while(go == 1) { m.call(); } 34 26 BENCH( 27 while(go == 1) { m.call(); }, 28 result 29 ) 30 printf( "%g\n", result ); 35 31 } 36 32 }; 37 33 38 int main(int margc, char* margv[]) { 39 argc = margc; 40 argv = margv; 34 int main( int argc, char * argv[] ) { 35 BENCH_START() 41 36 T t; 42 37 return m.wait(); 43 38 } 39 40 // Local Variables: // 41 // tab-width: 4 // 42 // End: //
Note: See TracChangeset
for help on using the changeset viewer.