Changeset eef8dfb for benchmark/Makefile.am
- Timestamp:
- Jan 7, 2021, 2:55:57 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 58fe85a
- Parents:
- bdfc032 (diff), 44e37ef (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
benchmark/Makefile.am (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
rbdfc032 reef8dfb 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Sat Jan 25 09:20:44202014 ## Update Count : 25 513 ## Last Modified On : Tue Mar 10 11:41:18 2020 14 ## Update Count : 258 15 15 ############################################################################### 16 16 … … 19 19 20 20 # applies to both programs 21 include $(top_srcdir)/ src/cfa.make21 include $(top_srcdir)/tools/build/cfa.make 22 22 23 23 AM_CFLAGS = -O2 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror … … 30 30 BENCH_V_UPP = $(__bench_v_UPP_$(__quiet)) 31 31 BENCH_V_GOC = $(__bench_v_GOC_$(__quiet)) 32 BENCH_V_PY = $(__bench_v_PY_$(__quiet)) 32 33 BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet)) 33 34 BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet)) … … 47 48 __bench_v_UPP_verbose = $(AM_V_UPP) 48 49 __bench_v_GOC_verbose = $(AM_V_GOC) 49 __bench_v_RUSTC_verbose = $(AM_V_RUSTC) 50 __bench_v_PY_verbose = $(AM_V_PY) 51 __bench_v_RUSTC_verbose = $(AM_V_RUST) 50 52 __bench_v_NODEJS_verbose = $(AM_V_NODEJS) 51 53 __bench_v_JAVAC_verbose = $(AM_V_JAVAC) … … 64 66 # Dummy hack tricks 65 67 EXTRA_PROGRAMS = dummy # build but do not install 66 dummy_SOURCES = dummyC.c dummyCXX.cpp68 nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp 67 69 68 70 dummyC.c: … … 72 74 echo "int main() { return 0; }" > ${@} 73 75 74 #.SILENT: # do not print recipe 75 .ONESHELL: # use one shell to execute recipe 76 .SILENT: # do not print recipe 76 77 .NOTPARALLEL: 77 .PHONY: compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv 78 79 ## ========================================================================================================= 80 81 all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) 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) 82 86 83 87 basic_loop_DURATION = 15000000000 … … 107 111 creation_cfa_coroutine_DURATION = 100000000 108 112 creation_cfa_coroutine_eager_DURATION = 10000000 113 creation_cfa_generator_DURATION = 1000000000 109 114 creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} 110 creation_cfa_thread_DURATION = 10000000111 creation_upp_thread_DURATION = ${creation_cfa_thread_DURATION}112 115 creation_DURATION = 10000000 113 116 … … 142 145 FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@ 143 146 144 jenkins$(EXEEXT): 147 cleancsv: 148 rm -f compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv 149 150 jenkins$(EXEEXT): cleancsv 145 151 @DOifskipcompile@ 146 152 +make compile.csv 147 153 -+make compile.diff.csv 148 154 @DOendif@ 149 +make basic.csv150 -+make basic.diff.csv151 155 +make ctxswitch.csv 152 156 -+make ctxswitch.diff.csv … … 159 163 -cat compile.diff.csv 160 164 @DOendif@ 161 cat basic.csv162 -cat basic.diff.csv163 165 cat ctxswitch.csv 164 166 -cat ctxswitch.diff.csv … … 169 171 170 172 compile.csv: 173 echo "building $@" 171 174 echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ 172 175 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ … … 180 183 $(srcdir)/fixcsv.sh $@ 181 184 182 basic.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 189 185 ctxswitch.csv: 186 echo "building $@" 190 187 echo "generator,coroutine,thread" > $@ 191 188 +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ … … 195 192 196 193 mutex.csv: 194 echo "building $@" 197 195 echo "1-monitor,2-monitor" > $@ 198 196 +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ … … 201 199 202 200 schedint.csv: 201 echo "building $@" 203 202 echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@ 204 203 +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@ … … 289 288 290 289 ctxswitch-python_coroutine$(EXEEXT): 291 echo "#!/bin/sh" > a.out292 echo "python3 .7 $(srcdir)/ctxswitch/python_cor.py" >> a.out290 $(BENCH_V_PY)echo "#!/bin/sh" > a.out 291 echo "python3 $(srcdir)/ctxswitch/python_cor.py \"$$""@\"" >> a.out 293 292 chmod a+x a.out 294 293 295 294 ctxswitch-nodejs_coroutine$(EXEEXT): 296 echo "#!/bin/sh" > a.out297 echo "nodejs $(srcdir)/ctxswitch/node_cor.js " >> a.out295 $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out 296 echo "nodejs $(srcdir)/ctxswitch/node_cor.js \"$$""@\"" >> a.out 298 297 chmod a+x a.out 299 298 300 299 ctxswitch-nodejs_await$(EXEEXT): 301 echo "#!/bin/sh" > a.out302 echo "nodejs $(srcdir)/ctxswitch/node_await.js " >> a.out300 $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out 301 echo "nodejs $(srcdir)/ctxswitch/node_await.js \"$$""@\"" >> a.out 303 302 chmod a+x a.out 304 303 … … 312 311 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 313 312 echo "#!/bin/sh" > a.out 314 echo "java JavaThread " >> a.out313 echo "java JavaThread \"$$""@\"" >> a.out 315 314 chmod a+x a.out 316 315 … … 354 353 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 355 354 echo "#!/bin/sh" > a.out 356 echo "java JavaThread " >> a.out355 echo "java JavaThread \"$$""@\"" >> a.out 357 356 chmod a+x a.out 358 357 … … 386 385 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 387 386 echo "#!/bin/sh" > a.out 388 echo "java JavaThread " >> a.out387 echo "java JavaThread \"$$""@\"" >> a.out 389 388 chmod a+x a.out 390 389 … … 452 451 453 452 creation-python_coroutine$(EXEEXT): 454 echo "#!/bin/sh" > a.out455 echo "python3 .7 $(srcdir)/creation/python_cor.py" >> a.out453 $(BENCH_V_PY)echo "#!/bin/sh" > a.out 454 echo "python3 $(srcdir)/creation/python_cor.py \"$$""@\"" >> a.out 456 455 chmod a+x a.out 457 456 458 457 creation-nodejs_coroutine$(EXEEXT): 459 echo "#!/bin/sh" > a.out460 echo "nodejs $(srcdir)/creation/node_cor.js " >> a.out458 $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out 459 echo "nodejs $(srcdir)/creation/node_cor.js \"$$""@\"" >> a.out 461 460 chmod a+x a.out 462 461 … … 470 469 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 471 470 echo "#!/bin/sh" > a.out 472 echo "java JavaThread " >> a.out471 echo "java JavaThread \"$$""@\"" >> a.out 473 472 chmod a+x a.out 474 473 … … 478 477 ## ========================================================================================================= 479 478 480 compile$(EXEEXT) : \479 bcompile$(EXEEXT) : \ 481 480 compile-array.make \ 482 481 compile-attributes.make \ … … 491 490 492 491 compile-array$(EXEEXT): 493 $(CFACOMPILE) - fsyntax-only -w $(testdir)/array.cfa492 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/array.cfa 494 493 495 494 compile-attributes$(EXEEXT): 496 $(CFACOMPILE) - fsyntax-only -w $(testdir)/attributes.cfa495 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/attributes.cfa 497 496 498 497 compile-empty$(EXEEXT): 499 $(CFACOMPILE) - fsyntax-only -w $(srcdir)/compile/empty.cfa498 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(srcdir)/compile/empty.cfa 500 499 501 500 compile-expression$(EXEEXT): 502 $(CFACOMPILE) - fsyntax-only -w $(testdir)/expression.cfa501 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/expression.cfa 503 502 504 503 compile-io$(EXEEXT): 505 $(CFACOMPILE) - fsyntax-only -w $(testdir)/io1.cfa504 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/io1.cfa 506 505 507 506 compile-monitor$(EXEEXT): 508 $(CFACOMPILE) - fsyntax-only -w $(testdir)/concurrent/monitor.cfa507 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/monitor.cfa 509 508 510 509 compile-operators$(EXEEXT): 511 $(CFACOMPILE) - fsyntax-only -w $(testdir)/operators.cfa510 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/operators.cfa 512 511 513 512 compile-thread$(EXEEXT): 514 $(CFACOMPILE) - fsyntax-only -w $(testdir)/concurrent/thread.cfa513 $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/thread.cfa 515 514 516 515 compile-typeof$(EXEEXT): 517 $(CFACOMPILE) -fsyntax-only -w $(testdir)/typeof.cfa 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 $@) $@
Note:
See TracChangeset
for help on using the changeset viewer.