Changeset b4107c8 for benchmark/basic
- 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
- Location:
- benchmark/basic
- Files:
-
- 2 added
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
benchmark/basic/fetch_add.c
r846c026 rb4107c8 11 11 } 12 12 13 int main(int argc, char* argv[]) { 13 int main( int argc, char * argv[] ) { 14 BENCH_START() 14 15 BENCH( 15 for (size_t i = 0; i < n; i++) {16 for (size_t i = 0; i < times; i++) { 16 17 do_call(); 17 18 }, 18 19 result 19 20 ) 21 printf( "%g\n", result ); 22 } 20 23 21 printf("%g\n", result); 22 } 24 // Local Variables: // 25 // tab-width: 4 // 26 // End: // -
benchmark/basic/tls_fetch_add.c
r846c026 rb4107c8 16 16 } 17 17 18 int main(int argc, char* argv[]) { 18 int main( int argc, char * argv[] ) { 19 BENCH_START() 19 20 BENCH( 20 for (size_t i = 0; i < n; i++) {21 for (size_t i = 0; i < times; i++) { 21 22 do_call(); 22 23 }, 23 24 result 24 25 ) 26 printf( "%g\n", result ); 27 } 25 28 26 printf("%g\n", result); 27 } 29 // Local Variables: // 30 // tab-width: 4 // 31 // End: // -
benchmark/basic/ttst_lock.c
r846c026 rb4107c8 35 35 } 36 36 37 int main(int argc, char* argv[]) { 37 int main( int argc, char * argv[] ) { 38 BENCH_START() 38 39 BENCH( 39 for (size_t i = 0; i < n; i++) {40 for (size_t i = 0; i < times; i++) { 40 41 do_call(); 41 42 }, 42 43 result 43 ) 44 45 printf("%g\n", result); 44 ) 45 printf( "%g\n", result ); 46 46 } 47 47
Note: See TracChangeset
for help on using the changeset viewer.