Changes in benchmark/mutex/cfa1.cfa [2316525:dc33b5b]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/mutex/cfa1.cfa
r2316525 rdc33b5b 4 4 #include "bench.h" 5 5 6 monitor M {} m1;7 void __attribute__((noinline)) call( M & mutex p1) {}6 monitor M {}; 7 void __attribute__((noinline)) call( M & mutex m ) {} 8 8 9 int main( int argc, char * argv[]) {10 BENCH_START()9 int main(int argc, char* argv[]) { 10 M m; 11 11 BENCH( 12 for ( times) {13 call( m1);12 for ( i; n ) { 13 call(m); 14 14 }, 15 15 result 16 16 ) 17 printf( "%g\n", result ); 17 18 printf("%g\n", result); 18 19 } 19 20 // Local Variables: //21 // tab-width: 4 //22 // End: //
Note:
See TracChangeset
for help on using the changeset viewer.