Changeset 580c11b
- Timestamp:
- Jan 7, 2020, 5:04:47 PM (5 years ago)
- 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:
- 6e540ea
- Parents:
- b4107c8
- Location:
- benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
rb4107c8 r580c11b 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Jan 7 1 5:37:42202014 ## Update Count : 7013 ## Last Modified On : Tue Jan 7 17:01:01 2020 14 ## Update Count : 103 15 15 ############################################################################### 16 16 … … 65 65 66 66 dummyC.c: 67 @echo "int main() { return 0; }" > ${@}67 echo "int main() { return 0; }" > ${@} 68 68 69 69 dummyCXX.cpp: 70 @echo "int main() { return 0; }" > ${@} 71 70 echo "int main() { return 0; }" > ${@} 71 72 .SILENT: 73 .ONESHELL: 72 74 .NOTPARALLEL: 73 75 .PHONY: compile.csv basic.csv ctxswitch.csv mutex.csv signal.csv … … 78 80 79 81 %.run : %$(EXEEXT) ${REPEAT} 80 @rm -f .result.log81 @echo "------------------------------------------------------"82 @echo $<83 @${REPEAT} ${repeats} ./a.out | tee -a .result.log84 @${STATS} .result.log85 @echo "------------------------------------------------------"86 @rm -f a.out .result.log *.class82 rm -f .result.log 83 echo "------------------------------------------------------" 84 echo $< 85 ${REPEAT} ${repeats} ./a.out | tee -a .result.log 86 ${STATS} .result.log 87 echo "------------------------------------------------------" 88 rm -f a.out .result.log *.class 87 89 88 90 %.runquiet : 89 @+make $(basename $@) CFLAGS="-w" __quiet=quiet90 @taskset -c 1 ./a.out91 @rm -f a.out91 +make $(basename $@) CFLAGS="-w" __quiet=quiet 92 taskset -c 1 ./a.out 93 rm -f a.out 92 94 93 95 %.make : 94 @printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@))95 @+/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&196 printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@)) 97 +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1 96 98 97 99 ${REPEAT} : 98 @+make -C ${abs_top_builddir}/tools repeat100 +make -C ${abs_top_builddir}/tools repeat 99 101 100 102 ## ========================================================================================================= … … 104 106 jenkins$(EXEEXT): 105 107 @DOifskipcompile@ 106 @+make compile.csv107 @-+make compile.diff.csv108 +make compile.csv 109 -+make compile.diff.csv 108 110 @DOendif@ 109 @+make basic.csv110 @-+make basic.diff.csv111 @+make ctxswitch.csv112 @-+make ctxswitch.diff.csv113 @+make mutex.csv114 @-+make mutex.diff.csv115 @+make signal.csv116 @-+make signal.diff.csv111 +make basic.csv 112 -+make basic.diff.csv 113 +make ctxswitch.csv 114 -+make ctxswitch.diff.csv 115 +make mutex.csv 116 -+make mutex.diff.csv 117 +make signal.csv 118 -+make signal.diff.csv 117 119 @DOifskipcompile@ 118 120 cat compile.csv … … 129 131 130 132 compile.csv: 131 @echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@132 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@133 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@134 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@135 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@136 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@137 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@138 @+make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@139 @+make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@140 @$(srcdir)/fixcsv.sh $@133 echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ 134 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ 135 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@ 136 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@ 137 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@ 138 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@ 139 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@ 140 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@ 141 +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@ 142 $(srcdir)/fixcsv.sh $@ 141 143 142 144 basic.csv: 143 @echo "generator,coroutine,thread" > $@144 @+make basic-cfa_generator.runquiet >> $@ && echo -n ',' >> $@145 @+make basic-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@146 @+make basic-cfa_thread.runquiet >> $@147 @$(srcdir)/fixcsv.sh $@145 echo "generator,coroutine,thread" > $@ 146 +make basic-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ 147 +make basic-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ 148 +make basic-cfa_thread.runquiet >> $@ 149 $(srcdir)/fixcsv.sh $@ 148 150 149 151 ctxswitch.csv: 150 @echo "generator,coroutine,thread" > $@151 @+make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@152 @+make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@153 @+make ctxswitch-cfa_thread.runquiet >> $@154 @$(srcdir)/fixcsv.sh $@152 echo "generator,coroutine,thread" > $@ 153 +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ 154 +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@ 155 +make ctxswitch-cfa_thread.runquiet >> $@ 156 $(srcdir)/fixcsv.sh $@ 155 157 156 158 mutex.csv: 157 @echo "1-monitor,2-monitor" > $@158 @+make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@159 @+make mutex-cfa2.runquiet >> $@160 @$(srcdir)/fixcsv.sh $@159 echo "1-monitor,2-monitor" > $@ 160 +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ 161 +make mutex-cfa2.runquiet >> $@ 162 $(srcdir)/fixcsv.sh $@ 161 163 162 164 signal.csv: 163 @echo "signal-1,signal-2,waitfor-1,waitfor-2" > $@164 @+make signal-cfa1.runquiet >> $@ && echo -n ',' >> $@165 @+make signal-cfa2.runquiet >> $@ && echo -n ',' >> $@166 @+make waitfor-cfa1.runquiet >> $@ && echo -n ',' >> $@167 @+make waitfor-cfa2.runquiet >> $@168 @$(srcdir)/fixcsv.sh $@165 echo "signal-1,signal-2,waitfor-1,waitfor-2" > $@ 166 +make signal-cfa1.runquiet >> $@ && echo -n ',' >> $@ 167 +make signal-cfa2.runquiet >> $@ && echo -n ',' >> $@ 168 +make waitfor-cfa1.runquiet >> $@ && echo -n ',' >> $@ 169 +make waitfor-cfa2.runquiet >> $@ 170 $(srcdir)/fixcsv.sh $@ 169 171 170 172 %.diff.csv: %.csv 171 @test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false)172 @$(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@173 test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false) 174 $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ 173 175 174 176 ## ========================================================================================================= … … 199 201 200 202 basic-loop.run : basic-loop$(EXEEXT) ${REPEAT} 201 @rm -f .result.log202 @echo "------------------------------------------------------"203 @echo $<204 @${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log205 @${STATS} .result.log206 @echo "------------------------------------------------------"207 @rm -f a.out .result.log *.class203 rm -f .result.log 204 echo "------------------------------------------------------" 205 echo $< 206 ${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log 207 ${STATS} .result.log 208 echo "------------------------------------------------------" 209 rm -f a.out .result.log *.class 208 210 209 211 basic-function.run : basic-function$(EXEEXT) ${REPEAT} 210 @rm -f .result.log211 @echo "------------------------------------------------------"212 @echo $<213 @${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log214 @${STATS} .result.log215 @echo "------------------------------------------------------"216 @rm -f a.out .result.log *.class212 rm -f .result.log 213 echo "------------------------------------------------------" 214 echo $< 215 ${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log 216 ${STATS} .result.log 217 echo "------------------------------------------------------" 218 rm -f a.out .result.log *.class 217 219 218 220 basic-%.run : basic-%$(EXEEXT) ${REPEAT} 219 @rm -f .result.log220 @echo "------------------------------------------------------"221 @echo $<222 @${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log223 @${STATS} .result.log224 @echo "------------------------------------------------------"225 @rm -f a.out .result.log *.class221 rm -f .result.log 222 echo "------------------------------------------------------" 223 echo $< 224 ${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log 225 ${STATS} .result.log 226 echo "------------------------------------------------------" 227 rm -f a.out .result.log *.class 226 228 227 229 ## ========================================================================================================= … … 237 239 ctxswitch-goroutine.run \ 238 240 ctxswitch-rust_thread.run \ 239 ctxswitch-nodejs_ thread.run \241 ctxswitch-nodejs_coroutine.run \ 240 242 ctxswitch-java_thread.run 241 243 … … 281 283 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs 282 284 285 ctxswitch-nodejs_coroutine$(EXEEXT): 286 283 287 ctxswitch-java_thread$(EXEEXT): 284 288 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 285 @echo "#!/bin/sh" > a.out 286 @echo "java JavaThread" >> a.out 287 @chmod a+x a.out 288 289 ctxswitch-nodejs.run : ctxswitch-nodejs$(EXEEXT) ${REPEAT} 290 @rm -f .result.log 291 @echo "------------------------------------------------------" 292 @echo $< 293 @${REPEAT} ${repeats} node node_cor.js 50000000 | tee -a .result.log 294 @${STATS} .result.log 295 @echo "------------------------------------------------------" 296 @rm -f a.out .result.log *.class 289 echo "#!/bin/sh" > a.out 290 echo "java JavaThread" >> a.out 291 chmod a+x a.out 292 293 ctxswitch-nodejs_coroutine.run : ctxswitch-nodejs_coroutine$(EXEEXT) ${REPEAT} 294 rm -f .result.log 295 echo "------------------------------------------------------" 296 echo $< 297 for (( i = 1; i <= ${repeats}; i += 1 )) ; do 298 node $(srcdir)/ctxswitch/node_cor.js 50000000 | tee -a .result.log 299 done 300 ${STATS} .result.log 301 echo "------------------------------------------------------" 302 rm -f a.out .result.log *.class 297 303 298 304 ctxswitch-%.run : ctxswitch-%$(EXEEXT) ${REPEAT} 299 @rm -f .result.log300 @echo "------------------------------------------------------"301 @echo $<302 @${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log303 @${STATS} .result.log304 @echo "------------------------------------------------------"305 @rm -f a.out .result.log *.class305 rm -f .result.log 306 echo "------------------------------------------------------" 307 echo $< 308 ${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log 309 ${STATS} .result.log 310 echo "------------------------------------------------------" 311 rm -f a.out .result.log *.class 306 312 307 313 ## ========================================================================================================= … … 340 346 mutex-java$(EXEEXT): 341 347 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 342 @echo "#!/bin/sh" > a.out343 @echo "java JavaThread" >> a.out344 @chmod a+x a.out348 echo "#!/bin/sh" > a.out 349 echo "java JavaThread" >> a.out 350 chmod a+x a.out 345 351 346 352 ## ========================================================================================================= … … 375 381 signal-java$(EXEEXT): 376 382 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 377 @echo "#!/bin/sh" > a.out378 @echo "java JavaThread" >> a.out379 @chmod a+x a.out383 echo "#!/bin/sh" > a.out 384 echo "java JavaThread" >> a.out 385 chmod a+x a.out 380 386 381 387 ## ========================================================================================================= … … 438 444 creation-java$(EXEEXT): 439 445 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 440 @echo "#!/bin/sh" > a.out441 @echo "java JavaThread" >> a.out442 @chmod a+x a.out446 echo "#!/bin/sh" > a.out 447 echo "java JavaThread" >> a.out 448 chmod a+x a.out 443 449 444 450 ## ========================================================================================================= … … 457 463 458 464 compile-array$(EXEEXT): 459 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa465 $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa 460 466 461 467 compile-attributes$(EXEEXT): 462 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa468 $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa 463 469 464 470 compile-empty$(EXEEXT): 465 @$(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa471 $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa 466 472 467 473 compile-expression$(EXEEXT): 468 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa474 $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa 469 475 470 476 compile-io$(EXEEXT): 471 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa477 $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa 472 478 473 479 compile-monitor$(EXEEXT): 474 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa480 $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa 475 481 476 482 compile-operators$(EXEEXT): 477 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa483 $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa 478 484 479 485 compile-thread$(EXEEXT): 480 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa486 $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa 481 487 482 488 compile-typeof$(EXEEXT): 483 @$(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa489 $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa -
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.