Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/Makefile.am

    r751e2eb r8633485b  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Tue Mar 10 11:41:18 2020
    14 ## Update Count     : 258
     13## Last Modified On : Sat Jan 25 09:20:44 2020
     14## Update Count     : 255
    1515###############################################################################
    1616
     
    1919
    2020# applies to both programs
    21 include $(top_srcdir)/tools/build/cfa.make
     21include $(top_srcdir)/src/cfa.make
    2222
    2323AM_CFLAGS = -O2 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror
     
    3030BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))
    3131BENCH_V_GOC = $(__bench_v_GOC_$(__quiet))
    32 BENCH_V_PY = $(__bench_v_PY_$(__quiet))
    3332BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet))
    3433BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet))
     
    4847__bench_v_UPP_verbose = $(AM_V_UPP)
    4948__bench_v_GOC_verbose = $(AM_V_GOC)
    50 __bench_v_PY_verbose = $(AM_V_PY)
    51 __bench_v_RUSTC_verbose = $(AM_V_RUST)
     49__bench_v_RUSTC_verbose = $(AM_V_RUSTC)
    5250__bench_v_NODEJS_verbose = $(AM_V_NODEJS)
    5351__bench_v_JAVAC_verbose = $(AM_V_JAVAC)
     
    6664# Dummy hack tricks
    6765EXTRA_PROGRAMS = dummy # build but do not install
    68 nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp
     66dummy_SOURCES = dummyC.c dummyCXX.cpp
    6967
    7068dummyC.c:
     
    7472        echo "int main() { return 0; }" > ${@}
    7573
    76 .SILENT:                # do not print recipe
     74#.SILENT:               # do not print recipe
     75.ONESHELL:              # use one shell to execute recipe
    7776.NOTPARALLEL:
    78 .PHONY: jenkins cleancsv
    79 
    80 ## =========================================================================================================
    81 
    82 # all is used by make dist so ignore it
    83 all:
    84 
    85 all-bench : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT)
     77.PHONY: compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv
     78
     79## =========================================================================================================
     80
     81all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT)
    8682
    8783basic_loop_DURATION = 15000000000
     
    111107creation_cfa_coroutine_DURATION = 100000000
    112108creation_cfa_coroutine_eager_DURATION = 10000000
    113 creation_cfa_generator_DURATION = 1000000000
    114109creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION}
     110creation_cfa_thread_DURATION = 10000000
     111creation_upp_thread_DURATION = ${creation_cfa_thread_DURATION}
    115112creation_DURATION = 10000000
    116113
     
    145142FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@
    146143
    147 cleancsv:
    148         rm -f compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv
    149 
    150 jenkins$(EXEEXT): cleancsv
     144jenkins$(EXEEXT):
    151145@DOifskipcompile@
    152146        +make compile.csv
    153147        -+make compile.diff.csv
    154148@DOendif@
     149        +make basic.csv
     150        -+make basic.diff.csv
    155151        +make ctxswitch.csv
    156152        -+make ctxswitch.diff.csv
     
    163159        -cat compile.diff.csv
    164160@DOendif@
     161        cat basic.csv
     162        -cat basic.diff.csv
    165163        cat ctxswitch.csv
    166164        -cat ctxswitch.diff.csv
     
    171169
    172170compile.csv:
    173         echo "building $@"
    174171        echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@
    175172        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@
     
    183180        $(srcdir)/fixcsv.sh $@
    184181
     182basic.csv:
     183        echo "generator,coroutine,thread" > $@
     184        +make basic-cfa_generator.runquiet >> $@ && echo -n ',' >> $@
     185        +make basic-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@
     186        +make basic-cfa_thread.runquiet >> $@
     187        $(srcdir)/fixcsv.sh $@
     188
    185189ctxswitch.csv:
    186         echo "building $@"
    187190        echo "generator,coroutine,thread" > $@
    188191        +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@
     
    192195
    193196mutex.csv:
    194         echo "building $@"
    195197        echo "1-monitor,2-monitor" > $@
    196198        +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@
     
    199201
    200202schedint.csv:
    201         echo "building $@"
    202203        echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@
    203204        +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@
     
    288289
    289290ctxswitch-python_coroutine$(EXEEXT):
    290         $(BENCH_V_PY)echo "#!/bin/sh" > a.out
    291         echo "python3 $(srcdir)/ctxswitch/python_cor.py \"$$""@\"" >> a.out
     291        echo "#!/bin/sh" > a.out
     292        echo "python3.7 $(srcdir)/ctxswitch/python_cor.py" >> a.out
    292293        chmod a+x a.out
    293294
    294295ctxswitch-nodejs_coroutine$(EXEEXT):
    295         $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
    296         echo "nodejs $(srcdir)/ctxswitch/node_cor.js \"$$""@\"" >> a.out
     296        echo "#!/bin/sh" > a.out
     297        echo "nodejs $(srcdir)/ctxswitch/node_cor.js" >> a.out
    297298        chmod a+x a.out
    298299
    299300ctxswitch-nodejs_await$(EXEEXT):
    300         $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
    301         echo "nodejs $(srcdir)/ctxswitch/node_await.js \"$$""@\"" >> a.out
     301        echo "#!/bin/sh" > a.out
     302        echo "nodejs $(srcdir)/ctxswitch/node_await.js" >> a.out
    302303        chmod a+x a.out
    303304
     
    311312        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java
    312313        echo "#!/bin/sh" > a.out
    313         echo "java JavaThread \"$$""@\"" >> a.out
     314        echo "java JavaThread" >> a.out
    314315        chmod a+x a.out
    315316
     
    353354        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java
    354355        echo "#!/bin/sh" > a.out
    355         echo "java JavaThread \"$$""@\"" >> a.out
     356        echo "java JavaThread" >> a.out
    356357        chmod a+x a.out
    357358
     
    385386        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java
    386387        echo "#!/bin/sh" > a.out
    387         echo "java JavaThread \"$$""@\"" >> a.out
     388        echo "java JavaThread" >> a.out
    388389        chmod a+x a.out
    389390
     
    451452
    452453creation-python_coroutine$(EXEEXT):
    453         $(BENCH_V_PY)echo "#!/bin/sh" > a.out
    454         echo "python3 $(srcdir)/creation/python_cor.py \"$$""@\"" >> a.out
     454        echo "#!/bin/sh" > a.out
     455        echo "python3.7 $(srcdir)/creation/python_cor.py" >> a.out
    455456        chmod a+x a.out
    456457
    457458creation-nodejs_coroutine$(EXEEXT):
    458         $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
    459         echo "nodejs $(srcdir)/creation/node_cor.js \"$$""@\"" >> a.out
     459        echo "#!/bin/sh" > a.out
     460        echo "nodejs $(srcdir)/creation/node_cor.js" >> a.out
    460461        chmod a+x a.out
    461462
     
    469470        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java
    470471        echo "#!/bin/sh" > a.out
    471         echo "java JavaThread \"$$""@\"" >> a.out
     472        echo "java JavaThread" >> a.out
    472473        chmod a+x a.out
    473474
     
    477478## =========================================================================================================
    478479
    479 bcompile$(EXEEXT) :             \
     480compile$(EXEEXT) :              \
    480481        compile-array.make      \
    481482        compile-attributes.make \
     
    490491
    491492compile-array$(EXEEXT):
    492         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/array.cfa
     493        $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa
    493494
    494495compile-attributes$(EXEEXT):
    495         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/attributes.cfa
     496        $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa
    496497
    497498compile-empty$(EXEEXT):
    498         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(srcdir)/compile/empty.cfa
     499        $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa
    499500
    500501compile-expression$(EXEEXT):
    501         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/expression.cfa
     502        $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa
    502503
    503504compile-io$(EXEEXT):
    504         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/io1.cfa
     505        $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa
    505506
    506507compile-monitor$(EXEEXT):
    507         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/monitor.cfa
     508        $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa
    508509
    509510compile-operators$(EXEEXT):
    510         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/operators.cfa
     511        $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa
    511512
    512513compile-thread$(EXEEXT):
    513         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/thread.cfa
     514        $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa
    514515
    515516compile-typeof$(EXEEXT):
    516         $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/typeof.cfa
    517 
    518 ## =========================================================================================================
    519 
    520 size$(EXEEXT) : size-cfa.runquiet
    521 
    522 size-cfa$(EXEEXT):
    523         $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/size/size.cfa
    524 
    525 ## =========================================================================================================
    526 
    527 %-tokio$(EXEEXT): $(srcdir)/readyQ/%.rs $(srcdir)/bench.rs
    528         cd $(builddir) && cargo build --release
    529         cp $(builddir)/target/release/$(basename $@) $@
     517        $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa
Note: See TracChangeset for help on using the changeset viewer.