Ignore:
Timestamp:
Jan 7, 2020, 3:50:56 PM (3 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, pthread-emulation
Children:
580c11b
Parents:
846c026
Message:

update existing benchmarks for changes to bench.h, add new benchmarks in new programming languages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/schedext/cfa4.cfa

    r846c026 rb4107c8  
    66#include "bench.h"
    77
    8 int argc;
    9 char** argv;
    108volatile int go = 0;
    119
     
    1715int  __attribute__((noinline)) wait( M & mutex a1, M & mutex a2, M & mutex a3, M & mutex a4 ) {
    1816        go = 1;
    19         BENCH(
    20                 for ( i; n ) {
    21                         waitfor(call, a1, a2, a3, a4);
    22                 },
    23                 result
    24         )
    25 
    26         printf("%g\n", result);
     17        for ( i; times ) {
     18                waitfor( call, a1, a2, a3, a4 );
     19        }
    2720        go = 0;
    2821        return 0;
     
    3326void main( T & ) {
    3427        while(go == 0) { yield(); }
    35         while(go == 1) { call(m1, m2, m3, m4); }
    36 
     28        BENCH(
     29                while(go == 1) { call(m1, m2, m3, m4); },
     30                result
     31        )
     32        printf( "%g\n", result );
    3733}
    3834
    39 int main(__attribute__((unused)) int argc, __attribute__((unused)) char* argv[]) {
     35int main( int argc, char * argv[] ) {
     36        BENCH_START()
    4037        T t;
    41         return wait(m1, m2, m3, m4);
     38        return wait( m1, m2, m3, m4 );
    4239}
     40
     41// Local Variables: //
     42// tab-width: 4 //
     43// End: //
Note: See TracChangeset for help on using the changeset viewer.