Changeset 9f0b975


Ignore:
Timestamp:
Oct 26, 2017, 4:22:17 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
6a5be52
Parents:
f54a0ab
Message:

added behcnmarks for signal and waitfor

Location:
src/benchmark
Files:
8 added
9 edited

Legend:

Unmodified
Added
Removed
  • src/benchmark/Makefile.am

    rf54a0ab r9f0b975  
    7373
    7474creation-cfa_coroutine$(EXEEXT):
    75         ${CC}        creation/cfa_cor.c   -DBENCH_N=500000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     75        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
    7676
    7777creation-cfa_thread$(EXEEXT):
     
    115115
    116116## =========================================================================================================
     117signal$(EXEEXT) :\
     118        signal-upp.run          \
     119        signal-cfa1.run         \
     120        signal-cfa2.run         \
     121        signal-cfa4.run
     122
     123signal-upp$(EXEEXT):
     124        u++          schedint/upp.cc     -DBENCH_N=50000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
     125
     126signal-cfa1$(EXEEXT):
     127        ${CC}        schedint/cfa1.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     128
     129signal-cfa2$(EXEEXT):
     130        ${CC}        schedint/cfa2.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     131
     132signal-cfa4$(EXEEXT):
     133        ${CC}        schedint/cfa4.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     134
     135## =========================================================================================================
     136waitfor$(EXEEXT) :\
     137        waitfor-upp.run         \
     138        waitfor-cfa1.run                \
     139        waitfor-cfa2.run                \
     140        waitfor-cfa4.run
     141
     142waitfor-upp$(EXEEXT):
     143        u++          schedext/upp.cc     -DBENCH_N=5000000   ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
     144
     145waitfor-cfa1$(EXEEXT):
     146        ${CC}        schedext/cfa1.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     147
     148waitfor-cfa2$(EXEEXT):
     149        ${CC}        schedext/cfa2.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     150
     151waitfor-cfa4$(EXEEXT):
     152        ${CC}        schedext/cfa4.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     153
     154## =========================================================================================================
    117155sched-int$(EXEEXT):
    118156        ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c
  • src/benchmark/Makefile.in

    rf54a0ab r9f0b975  
    487487
    488488creation-cfa_coroutine$(EXEEXT):
    489         ${CC}        creation/cfa_cor.c   -DBENCH_N=500000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     489        ${CC}        creation/cfa_cor.c   -DBENCH_N=10000000 ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
    490490
    491491creation-cfa_thread$(EXEEXT):
     
    526526mutex-cfa4$(EXEEXT):
    527527        ${CC}        mutex/cfa4.c     -DBENCH_N=5000000   ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     528
     529signal$(EXEEXT) :\
     530        signal-upp.run          \
     531        signal-cfa1.run         \
     532        signal-cfa2.run         \
     533        signal-cfa4.run
     534
     535signal-upp$(EXEEXT):
     536        u++          schedint/upp.cc     -DBENCH_N=50000000  ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
     537
     538signal-cfa1$(EXEEXT):
     539        ${CC}        schedint/cfa1.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     540
     541signal-cfa2$(EXEEXT):
     542        ${CC}        schedint/cfa2.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     543
     544signal-cfa4$(EXEEXT):
     545        ${CC}        schedint/cfa4.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     546
     547waitfor$(EXEEXT) :\
     548        waitfor-upp.run         \
     549        waitfor-cfa1.run                \
     550        waitfor-cfa2.run                \
     551        waitfor-cfa4.run
     552
     553waitfor-upp$(EXEEXT):
     554        u++          schedext/upp.cc     -DBENCH_N=5000000   ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -nodebug -lrt -quiet
     555
     556waitfor-cfa1$(EXEEXT):
     557        ${CC}        schedext/cfa1.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     558
     559waitfor-cfa2$(EXEEXT):
     560        ${CC}        schedext/cfa2.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
     561
     562waitfor-cfa4$(EXEEXT):
     563        ${CC}        schedext/cfa4.c     -DBENCH_N=500000    ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet
    528564
    529565sched-int$(EXEEXT):
  • src/benchmark/creation/cfa_cor.c

    rf54a0ab r9f0b975  
    55
    66coroutine MyCoroutine {};
    7 void main(MyCoroutine * this) {}
     7void ?{} (MyCoroutine & this) { prime(this); }
     8void main(MyCoroutine & this) {}
    89
    910int main(int argc, char* argv[]) {
  • src/benchmark/mutex/cfa1.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86monitor M {};
    9 
    10 void __attribute__((noinline)) call( M & mutex m ) {
    11         counter++;
    12 }
     7void __attribute__((noinline)) call( M & mutex m ) {}
    138
    149int main(int argc, char* argv[]) {
  • src/benchmark/mutex/cfa2.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86monitor M {};
    9 
    10 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2 ) {
    11         counter++;
    12 }
     7void __attribute__((noinline)) call( M & mutex m1, M & mutex m2 ) {}
    138
    149int main(int argc, char* argv[]) {
  • src/benchmark/mutex/cfa4.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    76
    87monitor M {};
    9 
    10 void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {
    11         counter++;
    12 }
     8void __attribute__((noinline)) call( M & mutex m1, M & mutex m2, M & mutex m3, M & mutex m4 ) {}
    139
    1410int main(int argc, char* argv[]) {
  • src/benchmark/mutex/function.c

    rf54a0ab r9f0b975  
    33#include "bench.h"
    44
    5 volatile unsigned long int counter = 0;
    6 
    7 void __attribute__((noinline)) call() {
    8         counter++;
    9 }
     5void __attribute__((noinline)) call() {}
    106
    117int main(int argc, char* argv[]) {
  • src/benchmark/mutex/pthreads.c

    rf54a0ab r9f0b975  
    44#include "bench.h"
    55
    6 volatile unsigned long int counter = 0;
    7 
    86pthread_mutex_t mutex;
    97
    108void __attribute__((noinline)) call() {
    119         pthread_mutex_lock  (&mutex);
    12          counter++;
    1310         pthread_mutex_unlock(&mutex);
    1411}
  • src/benchmark/mutex/upp.cc

    rf54a0ab r9f0b975  
    33#include "bench.h"
    44
    5 volatile unsigned long int counter = 0;
    6 
    75_Monitor MyMonitor {
    86public:
    9         void __attribute__((noinline)) call() {
    10                 counter++;
    11         }
     7        void __attribute__((noinline)) call() {}
    128};
    139
Note: See TracChangeset for help on using the changeset viewer.