Changeset 2316525 for benchmark/mutex


Ignore:
Timestamp:
Jan 19, 2020, 4:16:27 PM (2 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr
Children:
f090750
Parents:
9e63a2b
Message:

update benchmarks for concurrency paper

Location:
benchmark/mutex
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • benchmark/mutex/cfa1.cfa

    r9e63a2b r2316525  
    44#include "bench.h"
    55
    6 monitor M {};
    7 void __attribute__((noinline)) call( M & mutex m ) {}
     6monitor M {} m1;
     7void __attribute__((noinline)) call( M & mutex p1 ) {}
    88
    99int main( int argc, char * argv[] ) {
    1010        BENCH_START()
    11         M m;
    1211        BENCH(
    13                 for ( i; times ) {
    14                         call( m );
     12                for ( times ) {
     13                        call( m1 );
    1514                },
    1615                result
  • benchmark/mutex/cfa2.cfa

    r9e63a2b r2316525  
    44#include "bench.h"
    55
    6 monitor M {};
    7 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2 ) {}
     6monitor M {} m1, m2;
     7
     8void __attribute__((noinline)) call( M & mutex p1, M & mutex p2 ) {}
    89
    910int main( int argc, char * argv[] ) {
    1011        BENCH_START()
    11         M m1, m2;
    1212        BENCH(
    13                 for ( i; times ) {
     13                for ( times ) {
    1414                        call( m1, m2 );
    1515                },
  • benchmark/mutex/cfa4.cfa

    r9e63a2b r2316525  
    55
    66
    7 monitor M {};
    8 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {}
     7monitor M {} m1, m2, m3, m4;
     8void __attribute__((noinline)) call( M & mutex p1, M & mutex p2, M & mutex p3, M & mutex p4 ) {}
    99
    1010int main( int argc, char * argv[] ) {
    1111        BENCH_START()
    12         M m1, m2, m3, m4;
    1312        BENCH(
    14                 for ( i; times ) {
     13                for ( times ) {
    1514                        call( m1, m2, m3, m4 );
    1615                },
Note: See TracChangeset for help on using the changeset viewer.