Changeset 2316525 for benchmark/mutex
- Timestamp:
- Jan 19, 2020, 4:16:27 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:
- f090750
- Parents:
- 9e63a2b
- Location:
- benchmark/mutex
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/mutex/cfa1.cfa
r9e63a2b r2316525 4 4 #include "bench.h" 5 5 6 monitor M {} ;7 void __attribute__((noinline)) call( M & mutex m) {}6 monitor M {} m1; 7 void __attribute__((noinline)) call( M & mutex p1 ) {} 8 8 9 9 int main( int argc, char * argv[] ) { 10 10 BENCH_START() 11 M m;12 11 BENCH( 13 for ( i;times ) {14 call( m );12 for ( times ) { 13 call( m1 ); 15 14 }, 16 15 result -
benchmark/mutex/cfa2.cfa
r9e63a2b r2316525 4 4 #include "bench.h" 5 5 6 monitor M {}; 7 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2 ) {} 6 monitor M {} m1, m2; 7 8 void __attribute__((noinline)) call( M & mutex p1, M & mutex p2 ) {} 8 9 9 10 int main( int argc, char * argv[] ) { 10 11 BENCH_START() 11 M m1, m2;12 12 BENCH( 13 for ( i;times ) {13 for ( times ) { 14 14 call( m1, m2 ); 15 15 }, -
benchmark/mutex/cfa4.cfa
r9e63a2b r2316525 5 5 6 6 7 monitor M {} ;8 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {}7 monitor M {} m1, m2, m3, m4; 8 void __attribute__((noinline)) call( M & mutex p1, M & mutex p2, M & mutex p3, M & mutex p4 ) {} 9 9 10 10 int main( int argc, char * argv[] ) { 11 11 BENCH_START() 12 M m1, m2, m3, m4;13 12 BENCH( 14 for ( i;times ) {13 for ( times ) { 15 14 call( m1, m2, m3, m4 ); 16 15 },
Note: See TracChangeset
for help on using the changeset viewer.