Ignore:
Timestamp:
Jan 7, 2020, 3:50:56 PM (4 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/upp.cc

    r846c026 rb4107c8  
    33#include "bench.h"
    44
    5 int argc;
    6 char** argv;
    75volatile int go = 0;
    86
     
    1311        int __attribute__((noinline)) wait() {
    1412                go = 1;
    15                 BENCH(
    16                         for (size_t i = 0; i < n; i++) {
    17                                 _Accept(call);
    18                         },
    19                         result
    20                 )
    21 
    22                 printf("%g\n", result);
     13                for (size_t i = 0; i < times; i++) {
     14                        _Accept(call);
     15                }
    2316                go = 0;
    2417                return 0;
     
    3124        void main() {
    3225                while(go == 0) { yield(); }
    33                 while(go == 1) { m.call(); }
    34 
     26                BENCH(
     27                        while(go == 1) { m.call(); },
     28                        result
     29                )
     30                printf( "%g\n", result );
    3531        }
    3632};
    3733
    38 int main(int margc, char* margv[]) {
    39         argc = margc;
    40         argv = margv;
     34int main( int argc, char * argv[] ) {
     35        BENCH_START()
    4136        T t;
    4237        return m.wait();
    4338}
     39
     40// Local Variables: //
     41// tab-width: 4 //
     42// End: //
Note: See TracChangeset for help on using the changeset viewer.