Ignore:
Timestamp:
Jan 7, 2020, 3:50:56 PM (5 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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
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/cfa1.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 ) {
    1816        go = 1;
    19         BENCH(
    20                 for ( i; n ) {
    21                         waitfor(call, a1);
    22                 },
    23                 result
    24         )
    25 
    26         printf("%g\n", result);
     17        for ( i; times ) {
     18                waitfor(call, a1);
     19        }
    2720        go = 0;
    2821        return 0;
     
    3326void main( T & ) {
    3427        while(go == 0) { yield(); }
    35         while(go == 1) { call(m1); }
    36 
     28        BENCH(
     29                while(go == 1) { call(m1); },
     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);
     38        return wait( m1 );
    4239}
     40
     41// Local Variables: //
     42// tab-width: 4 //
     43// End: //
Note: See TracChangeset for help on using the changeset viewer.