Ignore:
Timestamp:
Jan 7, 2020, 3:42:36 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:
846c026
Parents:
4834563
Message:

begin updating benchmark build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • benchmark/Makefile.in

    r4834563 r90cb6f7  
    9393EXTRA_PROGRAMS = dummy$(EXEEXT)
    9494@WITH_LIBFIBRE_TRUE@am__append_1 = \
    95 @WITH_LIBFIBRE_TRUE@    ctxswitch-kos_fibre.run  \
     95@WITH_LIBFIBRE_TRUE@    ctxswitch-kos_fibre.run         \
    9696@WITH_LIBFIBRE_TRUE@    ctxswitch-kos_fibre2.run
    9797
     
    380380BENCH_V_CFA = $(__bench_v_CFA_$(__quiet))
    381381BENCH_V_CXX = $(__bench_v_CXX_$(__quiet))
     382BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))
    382383BENCH_V_GOC = $(__bench_v_GOC_$(__quiet))
     384BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet))
    383385BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet))
    384 BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))
    385386__quiet = verbose
    386387__bench_v_CC_quiet = @
    387388__bench_v_CFA_quiet = @
    388389__bench_v_CXX_quiet = @
     390__bench_v_UPP_quiet = @
    389391__bench_v_GOC_quiet = @
     392__bench_v_RUSTC_quiet = @
    390393__bench_v_JAVAC_quiet = @
    391 __bench_v_UPP_quiet = @
    392394__bench_v_CC_verbose = $(AM_V_CC)
    393395__bench_v_CFA_verbose = $(AM_V_CFA)
    394396__bench_v_CXX_verbose = $(AM_V_CXX)
     397__bench_v_UPP_verbose = $(AM_V_UPP)
    395398__bench_v_GOC_verbose = $(AM_V_GOC)
     399__bench_v_RUSTC_verbose = $(AM_V_RUSTC)
    396400__bench_v_JAVAC_verbose = $(AM_V_JAVAC)
    397 __bench_v_UPP_verbose = $(AM_V_UPP)
    398401TOOLSDIR = ${abs_top_builddir}/tools/
    399402REPEAT = ${abs_top_builddir}/tools/repeat
     
    407410dummy_SOURCES = dummyC.c dummyCXX.cpp
    408411FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@
    409 CTXSWITCH_DEPEND = loop.run function.run fetch_add.run ttst_lock.run \
    410         tls-fetch_add.run ctxswitch-pthread.run \
    411         ctxswitch-cfa_generator.run ctxswitch-cfa_coroutine.run \
    412         ctxswitch-cfa_thread.run ctxswitch-cfa_thread2.run \
    413         ctxswitch-upp_coroutine.run ctxswitch-upp_thread.run \
    414         ctxswitch-goroutine.run ctxswitch-java_thread.run \
    415         $(am__append_1)
     412BASIC_DEPEND = \
     413        basic-loop.run                  \
     414        basic-function.run                      \
     415        basic-fetch_add.run                     \
     416        basic-ttst_lock.run                     \
     417        basic-tls-fetch_add.run
     418
     419CTXSWITCH_DEPEND = ctxswitch-pthread.run ctxswitch-cfa_generator.run \
     420        ctxswitch-cfa_coroutine.run ctxswitch-cfa_thread.run \
     421        ctxswitch-cfa_thread2.run ctxswitch-upp_coroutine.run \
     422        ctxswitch-upp_thread.run ctxswitch-goroutine.run \
     423        ctxswitch-rust_thread.run ctxswitch-nodejs_thread.run \
     424        ctxswitch-java_thread.run $(am__append_1)
    416425testdir = $(top_srcdir)/tests
    417426all: all-am
     
    738747
    739748.NOTPARALLEL:
    740 .PHONY: compile.csv ctxswitch.csv mutex.csv signal.csv
    741 
    742 all : ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT)
     749.PHONY: compile.csv basic.csv ctxswitch.csv mutex.csv signal.csv
     750
     751all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT)
    743752
    744753%.run : %$(EXEEXT) ${REPEAT}
     
    768777        @-+make compile.diff.csv
    769778@DOendif@
     779        @+make basic.csv
     780        @-+make basic.diff.csv
    770781        @+make ctxswitch.csv
    771782        @-+make ctxswitch.diff.csv
     
    778789        -cat compile.diff.csv
    779790@DOendif@
     791        cat basic.csv
     792        -cat basic.diff.csv
    780793        cat ctxswitch.csv
    781794        -cat ctxswitch.diff.csv
     
    797810        @$(srcdir)/fixcsv.sh $@
    798811
     812basic.csv:
     813        @echo "generator,coroutine,thread" > $@
     814        @+make basic-cfa_generator.runquiet >> $@ && echo -n ',' >> $@
     815        @+make basic-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@
     816        @+make basic-cfa_thread.runquiet >> $@
     817        @$(srcdir)/fixcsv.sh $@
     818
    799819ctxswitch.csv:
    800820        @echo "generator,coroutine,thread" > $@
     
    822842        @$(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@
    823843
    824 loop$(EXEEXT):
    825         $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/loop.c
    826 
    827 function$(EXEEXT):
    828         $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/function.c
    829 
    830 fetch_add$(EXEEXT):
    831         $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000000  $(srcdir)/fetch_add.c
    832 
    833 ttst_lock$(EXEEXT):
    834         $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000000  $(srcdir)/ttst_lock.c
    835 
    836 tls-fetch_add$(EXEEXT):
    837         $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000000  $(srcdir)/tls-fetch_add.c
     844basic-loop$(EXEEXT):
     845        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c
     846
     847basic-function$(EXEEXT):
     848        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c
     849
     850basic-fetch_add$(EXEEXT):
     851        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c
     852
     853basic-ttst_lock$(EXEEXT):
     854        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c
     855
     856basic-tls-fetch_add$(EXEEXT):
     857        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c
     858
     859basic$(EXEEXT): $(BASIC_DEPEND)
     860
     861basic-loop.run : basic-loop$(EXEEXT) ${REPEAT}
     862        @rm -f .result.log
     863        @echo "------------------------------------------------------"
     864        @echo $<
     865        @${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log
     866        @${STATS} .result.log
     867        @echo "------------------------------------------------------"
     868        @rm -f a.out .result.log *.class
     869
     870basic-function.run : basic-function$(EXEEXT) ${REPEAT}
     871        @rm -f .result.log
     872        @echo "------------------------------------------------------"
     873        @echo $<
     874        @${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log
     875        @${STATS} .result.log
     876        @echo "------------------------------------------------------"
     877        @rm -f a.out .result.log *.class
     878
     879basic-%.run : basic-%$(EXEEXT) ${REPEAT}
     880        @rm -f .result.log
     881        @echo "------------------------------------------------------"
     882        @echo $<
     883        @${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log
     884        @${STATS} .result.log
     885        @echo "------------------------------------------------------"
     886        @rm -f a.out .result.log *.class
    838887
    839888@WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT):
     
    846895
    847896ctxswitch-pthread$(EXEEXT):
    848         $(BENCH_V_CC)$(COMPILE)    -DBENCH_N=50000000 $(srcdir)/ctxswitch/pthreads.c
     897        $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c
    849898
    850899ctxswitch-cfa_generator$(EXEEXT):
    851         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_gen.cfa
     900        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa
    852901
    853902ctxswitch-cfa_coroutine$(EXEEXT):
    854         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_cor.cfa
     903        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa
    855904
    856905ctxswitch-cfa_thread$(EXEEXT):
    857         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd.cfa
     906        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa
    858907
    859908ctxswitch-cfa_thread2$(EXEEXT):
    860         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/cfa_thrd2.cfa
     909        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa
    861910
    862911ctxswitch-upp_coroutine$(EXEEXT):
    863         $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_cor.cc
     912        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc
    864913
    865914ctxswitch-upp_thread$(EXEEXT):
    866         $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/upp_thrd.cc
     915        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc
    867916
    868917ctxswitch-goroutine$(EXEEXT):
    869918        $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go
     919
     920ctxswitch-rust_thread$(EXEEXT):
     921        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs
    870922
    871923ctxswitch-java_thread$(EXEEXT):
     
    875927        @chmod a+x a.out
    876928
    877 mutex$(EXEEXT) :\
    878         loop.run                        \
    879         function.run            \
    880         fetch_add.run           \
    881         mutex-pthread_lock.run  \
     929ctxswitch-nodejs.run : ctxswitch-nodejs$(EXEEXT) ${REPEAT}
     930        @rm -f .result.log
     931        @echo "------------------------------------------------------"
     932        @echo $<
     933        @${REPEAT} ${repeats} node node_cor.js 50000000 | tee -a .result.log
     934        @${STATS} .result.log
     935        @echo "------------------------------------------------------"
     936        @rm -f a.out .result.log *.class
     937
     938ctxswitch-%.run : ctxswitch-%$(EXEEXT) ${REPEAT}
     939        @rm -f .result.log
     940        @echo "------------------------------------------------------"
     941        @echo $<
     942        @${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log
     943        @${STATS} .result.log
     944        @echo "------------------------------------------------------"
     945        @rm -f a.out .result.log *.class
     946
     947mutex$(EXEEXT) :                \
     948        mutex-pthread.run       \
    882949        mutex-upp.run           \
    883950        mutex-cfa1.run          \
    884951        mutex-cfa2.run          \
    885952        mutex-cfa4.run          \
    886         mutex-java_thread.run
    887 
    888 mutex-pthread_lock$(EXEEXT):
    889         $(BENCH_V_CC)$(COMPILE)    -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c
     953        mutex-go.run            \
     954        mutex-rust.run          \
     955        mutex-java.run
     956
     957mutex-pthread$(EXEEXT):
     958        $(BENCH_V_CC)$(COMPILE)     -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c
    890959
    891960mutex-upp$(EXEEXT):
     
    893962
    894963mutex-cfa1$(EXEEXT):
    895         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000  $(srcdir)/mutex/cfa1.cfa
     964        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa1.cfa
    896965
    897966mutex-cfa2$(EXEEXT):
    898         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000  $(srcdir)/mutex/cfa2.cfa
     967        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa2.cfa
    899968
    900969mutex-cfa4$(EXEEXT):
    901         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000  $(srcdir)/mutex/cfa4.cfa
    902 
    903 mutex-java_thread$(EXEEXT):
     970        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa4.cfa
     971
     972mutex-go$(EXEEXT):
     973        $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go
     974
     975mutex-rust$(EXEEXT):
     976        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs
     977
     978mutex-java$(EXEEXT):
    904979        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java
    905980        @echo "#!/bin/sh" > a.out
     
    907982        @chmod a+x a.out
    908983
    909 signal$(EXEEXT) :\
    910         signal-pthread_cond.run \
     984signal$(EXEEXT) :               \
     985        signal-pthread.run      \
    911986        signal-upp.run          \
    912987        signal-cfa1.run         \
    913988        signal-cfa2.run         \
    914989        signal-cfa4.run         \
    915         signal-java_thread.run
    916 
    917 signal-pthread_cond$(EXEEXT):
    918         $(BENCH_V_CC)$(COMPILE)    -DBENCH_N=500000  $(srcdir)/schedint/pthreads.c
     990        signal-rust.run         \
     991        signal-java.run
     992
     993signal-pthread$(EXEEXT):
     994        $(BENCH_V_CC)$(COMPILE)     -DBENCH_N=5000000  $(srcdir)/schedint/pthreads.c
    919995
    920996signal-upp$(EXEEXT):
    921         $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc
     997        $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/upp.cc
    922998
    923999signal-cfa1$(EXEEXT):
    924         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000  $(srcdir)/schedint/cfa1.cfa
     1000        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa1.cfa
    9251001
    9261002signal-cfa2$(EXEEXT):
    927         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000  $(srcdir)/schedint/cfa2.cfa
     1003        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa2.cfa
    9281004
    9291005signal-cfa4$(EXEEXT):
    930         $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000  $(srcdir)/schedint/cfa4.cfa
    931 
    932 signal-java_thread$(EXEEXT):
     1006        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa4.cfa
     1007
     1008signal-rust$(EXEEXT):
     1009        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs
     1010
     1011signal-java$(EXEEXT):
    9331012        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java
    9341013        @echo "#!/bin/sh" > a.out
     
    9361015        @chmod a+x a.out
    9371016
    938 waitfor$(EXEEXT) :\
     1017waitfor$(EXEEXT) :              \
    9391018        waitfor-upp.run         \
    940         waitfor-cfa1.run                \
    941         waitfor-cfa2.run                \
     1019        waitfor-cfa1.run        \
     1020        waitfor-cfa2.run        \
    9421021        waitfor-cfa4.run
    9431022
     
    9541033        $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000  $(srcdir)/schedext/cfa4.cfa
    9551034
    956 creation$(EXEEXT) :\
     1035creation$(EXEEXT) :                             \
    9571036        creation-pthread.run                    \
    9581037        creation-cfa_coroutine.run              \
     
    9621041        creation-upp_thread.run                 \
    9631042        creation-goroutine.run                  \
    964         creation-java_thread.run
     1043        creation-rust.run                       \
     1044        creation-java.run
    9651045
    9661046creation-cfa_coroutine$(EXEEXT):
     
    9801060
    9811061creation-pthread$(EXEEXT):
    982         $(BENCH_V_CC)$(COMPILE)    -DBENCH_N=250000  $(srcdir)/creation/pthreads.c
     1062        $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c
    9831063
    9841064creation-goroutine$(EXEEXT):
    9851065        $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go
    9861066
    987 creation-java_thread$(EXEEXT):
     1067creation-rust$(EXEEXT):
     1068        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs
     1069
     1070creation-java$(EXEEXT):
    9881071        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java
    9891072        @echo "#!/bin/sh" > a.out
     
    9911074        @chmod a+x a.out
    9921075
    993 compile$(EXEEXT) :\
     1076compile$(EXEEXT) :              \
    9941077        compile-array.make      \
    9951078        compile-attributes.make \
Note: See TracChangeset for help on using the changeset viewer.