Changeset af58ee0


Ignore:
Timestamp:
Sep 26, 2017, 5:15:13 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
74bba15
Parents:
8d722cc
Message:

updated benchmark to have pthread context switch and new reference syntax

Location:
src/benchmark
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Makefile.am

    r8d722cc raf58ee0  
    4848        @rm -f a.out .result.log
    4949
     50ctxswitch-pthread$(EXEEXT):
     51        @BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -lrt -pthread -DN=50000000 PthrdCtxSwitch.c
     52        @rm -f .result.log
     53        @for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
     54                ./a.out | tee -a .result.log ; \
     55        done
     56        @./stat.py .result.log
     57        @rm -f a.out .result.log
     58
    5059sched-int$(EXEEXT):
    5160        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
  • src/benchmark/Makefile.in

    r8d722cc raf58ee0  
    598598        @rm -f a.out .result.log
    599599
     600ctxswitch-pthread$(EXEEXT):
     601        @BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -lrt -pthread -DN=50000000 PthrdCtxSwitch.c
     602        @rm -f .result.log
     603        @for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \
     604                ./a.out | tee -a .result.log ; \
     605        done
     606        @./stat.py .result.log
     607        @rm -f a.out .result.log
     608
    600609sched-int$(EXEEXT):
    601610        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
  • src/benchmark/bench.h

    r8d722cc raf58ee0  
    11#pragma once
    22
     3#ifdef __CFORALL__
    34extern "C" {
     5#endif
    46        #include <unistd.h>                                     // sysconf
    57        #include <sys/times.h>                                  // times
    68        #include <time.h>
     9#ifdef __CFORALL__
    710}
     11#endif
    812
    913inline unsigned long long int Time() {
    10     timespec ts;
     14    struct timespec ts;
    1115    clock_gettime(
    1216#if defined( __linux__ )
  • src/benchmark/create_cfaThrd.c

    r8d722cc raf58ee0  
    44
    55thread MyThread {};
    6 void main(MyThread * this) {}
     6void main(MyThread & this) {}
    77
    88int main(int argc, char* argv[]) {
Note: See TracChangeset for help on using the changeset viewer.