Changeset 580c11b for benchmark/Makefile.in
- Timestamp:
- Jan 7, 2020, 5:04:47 PM (3 years ago)
- Branches:
- ADT, arm-eh, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6e540ea
- Parents:
- b4107c8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.in
rb4107c8 r580c11b 421 421 ctxswitch-cfa_thread2.run ctxswitch-upp_coroutine.run \ 422 422 ctxswitch-upp_thread.run ctxswitch-goroutine.run \ 423 ctxswitch-rust_thread.run ctxswitch-nodejs_ thread.run \423 ctxswitch-rust_thread.run ctxswitch-nodejs_coroutine.run \ 424 424 ctxswitch-java_thread.run $(am__append_1) 425 425 testdir = $(top_srcdir)/tests … … 741 741 742 742 dummyC.c: 743 @echo "int main() { return 0; }" > ${@}743 echo "int main() { return 0; }" > ${@} 744 744 745 745 dummyCXX.cpp: 746 @echo "int main() { return 0; }" > ${@} 747 746 echo "int main() { return 0; }" > ${@} 747 748 .SILENT: 749 .ONESHELL: 748 750 .NOTPARALLEL: 749 751 .PHONY: compile.csv basic.csv ctxswitch.csv mutex.csv signal.csv … … 752 754 753 755 %.run : %$(EXEEXT) ${REPEAT} 754 @rm -f .result.log755 @echo "------------------------------------------------------"756 @echo $<757 @${REPEAT} ${repeats} ./a.out | tee -a .result.log758 @${STATS} .result.log759 @echo "------------------------------------------------------"760 @rm -f a.out .result.log *.class756 rm -f .result.log 757 echo "------------------------------------------------------" 758 echo $< 759 ${REPEAT} ${repeats} ./a.out | tee -a .result.log 760 ${STATS} .result.log 761 echo "------------------------------------------------------" 762 rm -f a.out .result.log *.class 761 763 762 764 %.runquiet : 763 @+make $(basename $@) CFLAGS="-w" __quiet=quiet764 @taskset -c 1 ./a.out765 @rm -f a.out765 +make $(basename $@) CFLAGS="-w" __quiet=quiet 766 taskset -c 1 ./a.out 767 rm -f a.out 766 768 767 769 %.make : 768 @printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@))769 @+/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1770 printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@)) 771 +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1 770 772 771 773 ${REPEAT} : 772 @+make -C ${abs_top_builddir}/tools repeat774 +make -C ${abs_top_builddir}/tools repeat 773 775 774 776 jenkins$(EXEEXT): 775 777 @DOifskipcompile@ 776 @+make compile.csv777 @-+make compile.diff.csv778 +make compile.csv 779 -+make compile.diff.csv 778 780 @DOendif@ 779 @+make basic.csv780 @-+make basic.diff.csv781 @+make ctxswitch.csv782 @-+make ctxswitch.diff.csv783 @+make mutex.csv784 @-+make mutex.diff.csv785 @+make signal.csv786 @-+make signal.diff.csv781 +make basic.csv 782 -+make basic.diff.csv 783 +make ctxswitch.csv 784 -+make ctxswitch.diff.csv 785 +make mutex.csv 786 -+make mutex.diff.csv 787 +make signal.csv 788 -+make signal.diff.csv 787 789 @DOifskipcompile@ 788 790 cat compile.csv … … 799 801 800 802 compile.csv: 801 @echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@802 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@803 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@804 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@805 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@806 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@807 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@808 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@809 @+make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@810 @$(srcdir)/fixcsv.sh $@803 echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ 804 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ 805 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@ 806 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@ 807 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@ 808 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@ 809 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@ 810 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@ 811 +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@ 812 $(srcdir)/fixcsv.sh $@ 811 813 812 814 basic.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 $@815 echo "generator,coroutine,thread" > $@ 816 +make basic-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ 817 +make basic-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ 818 +make basic-cfa_thread.runquiet >> $@ 819 $(srcdir)/fixcsv.sh $@ 818 820 819 821 ctxswitch.csv: 820 @echo "generator,coroutine,thread" > $@821 @+make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@822 @+make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@823 @+make ctxswitch-cfa_thread.runquiet >> $@824 @$(srcdir)/fixcsv.sh $@822 echo "generator,coroutine,thread" > $@ 823 +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ 824 +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ 825 +make ctxswitch-cfa_thread.runquiet >> $@ 826 $(srcdir)/fixcsv.sh $@ 825 827 826 828 mutex.csv: 827 @echo "1-monitor,2-monitor" > $@828 @+make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@829 @+make mutex-cfa2.runquiet >> $@830 @$(srcdir)/fixcsv.sh $@829 echo "1-monitor,2-monitor" > $@ 830 +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ 831 +make mutex-cfa2.runquiet >> $@ 832 $(srcdir)/fixcsv.sh $@ 831 833 832 834 signal.csv: 833 @echo "signal-1,signal-2,waitfor-1,waitfor-2" > $@834 @+make signal-cfa1.runquiet >> $@ && echo -n ',' >> $@835 @+make signal-cfa2.runquiet >> $@ && echo -n ',' >> $@836 @+make waitfor-cfa1.runquiet >> $@ && echo -n ',' >> $@837 @+make waitfor-cfa2.runquiet >> $@838 @$(srcdir)/fixcsv.sh $@835 echo "signal-1,signal-2,waitfor-1,waitfor-2" > $@ 836 +make signal-cfa1.runquiet >> $@ && echo -n ',' >> $@ 837 +make signal-cfa2.runquiet >> $@ && echo -n ',' >> $@ 838 +make waitfor-cfa1.runquiet >> $@ && echo -n ',' >> $@ 839 +make waitfor-cfa2.runquiet >> $@ 840 $(srcdir)/fixcsv.sh $@ 839 841 840 842 %.diff.csv: %.csv 841 @test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false)842 @$(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@843 test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false) 844 $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ 843 845 844 846 basic-loop$(EXEEXT): … … 860 862 861 863 basic-loop.run : basic-loop$(EXEEXT) ${REPEAT} 862 @rm -f .result.log863 @echo "------------------------------------------------------"864 @echo $<865 @${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log866 @${STATS} .result.log867 @echo "------------------------------------------------------"868 @rm -f a.out .result.log *.class864 rm -f .result.log 865 echo "------------------------------------------------------" 866 echo $< 867 ${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log 868 ${STATS} .result.log 869 echo "------------------------------------------------------" 870 rm -f a.out .result.log *.class 869 871 870 872 basic-function.run : basic-function$(EXEEXT) ${REPEAT} 871 @rm -f .result.log872 @echo "------------------------------------------------------"873 @echo $<874 @${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log875 @${STATS} .result.log876 @echo "------------------------------------------------------"877 @rm -f a.out .result.log *.class873 rm -f .result.log 874 echo "------------------------------------------------------" 875 echo $< 876 ${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log 877 ${STATS} .result.log 878 echo "------------------------------------------------------" 879 rm -f a.out .result.log *.class 878 880 879 881 basic-%.run : basic-%$(EXEEXT) ${REPEAT} 880 @rm -f .result.log881 @echo "------------------------------------------------------"882 @echo $<883 @${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log884 @${STATS} .result.log885 @echo "------------------------------------------------------"886 @rm -f a.out .result.log *.class882 rm -f .result.log 883 echo "------------------------------------------------------" 884 echo $< 885 ${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log 886 ${STATS} .result.log 887 echo "------------------------------------------------------" 888 rm -f a.out .result.log *.class 887 889 888 890 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT): … … 921 923 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs 922 924 925 ctxswitch-nodejs_coroutine$(EXEEXT): 926 923 927 ctxswitch-java_thread$(EXEEXT): 924 928 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 925 @echo "#!/bin/sh" > a.out 926 @echo "java JavaThread" >> a.out 927 @chmod a+x a.out 928 929 ctxswitch-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 929 echo "#!/bin/sh" > a.out 930 echo "java JavaThread" >> a.out 931 chmod a+x a.out 932 933 ctxswitch-nodejs_coroutine.run : ctxswitch-nodejs_coroutine$(EXEEXT) ${REPEAT} 934 rm -f .result.log 935 echo "------------------------------------------------------" 936 echo $< 937 for (( i = 1; i <= ${repeats}; i += 1 )) ; do 938 node $(srcdir)/ctxswitch/node_cor.js 50000000 | tee -a .result.log 939 done 940 ${STATS} .result.log 941 echo "------------------------------------------------------" 942 rm -f a.out .result.log *.class 937 943 938 944 ctxswitch-%.run : ctxswitch-%$(EXEEXT) ${REPEAT} 939 @rm -f .result.log940 @echo "------------------------------------------------------"941 @echo $<942 @${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log943 @${STATS} .result.log944 @echo "------------------------------------------------------"945 @rm -f a.out .result.log *.class945 rm -f .result.log 946 echo "------------------------------------------------------" 947 echo $< 948 ${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log 949 ${STATS} .result.log 950 echo "------------------------------------------------------" 951 rm -f a.out .result.log *.class 946 952 947 953 mutex$(EXEEXT) : \ … … 978 984 mutex-java$(EXEEXT): 979 985 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 980 @echo "#!/bin/sh" > a.out981 @echo "java JavaThread" >> a.out982 @chmod a+x a.out986 echo "#!/bin/sh" > a.out 987 echo "java JavaThread" >> a.out 988 chmod a+x a.out 983 989 984 990 signal$(EXEEXT) : \ … … 1011 1017 signal-java$(EXEEXT): 1012 1018 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 1013 @echo "#!/bin/sh" > a.out1014 @echo "java JavaThread" >> a.out1015 @chmod a+x a.out1019 echo "#!/bin/sh" > a.out 1020 echo "java JavaThread" >> a.out 1021 chmod a+x a.out 1016 1022 1017 1023 waitfor$(EXEEXT) : \ … … 1070 1076 creation-java$(EXEEXT): 1071 1077 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 1072 @echo "#!/bin/sh" > a.out1073 @echo "java JavaThread" >> a.out1074 @chmod a+x a.out1078 echo "#!/bin/sh" > a.out 1079 echo "java JavaThread" >> a.out 1080 chmod a+x a.out 1075 1081 1076 1082 compile$(EXEEXT) : \ … … 1085 1091 1086 1092 compile-array$(EXEEXT): 1087 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa1093 $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa 1088 1094 1089 1095 compile-attributes$(EXEEXT): 1090 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa1096 $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa 1091 1097 1092 1098 compile-empty$(EXEEXT): 1093 @$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa1099 $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa 1094 1100 1095 1101 compile-expression$(EXEEXT): 1096 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa1102 $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa 1097 1103 1098 1104 compile-io$(EXEEXT): 1099 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa1105 $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa 1100 1106 1101 1107 compile-monitor$(EXEEXT): 1102 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa1108 $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa 1103 1109 1104 1110 compile-operators$(EXEEXT): 1105 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa1111 $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa 1106 1112 1107 1113 compile-thread$(EXEEXT): 1108 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa1114 $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa 1109 1115 1110 1116 compile-typeof$(EXEEXT): 1111 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa1117 $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa 1112 1118 1113 1119 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note: See TracChangeset
for help on using the changeset viewer.