Changes in benchmark/Makefile.am [751e2eb:8633485b]
- File:
-
- 1 edited
-
benchmark/Makefile.am (modified) (21 diffs)
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
r751e2eb r8633485b 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue Mar 10 11:41:18202014 ## Update Count : 25 813 ## Last Modified On : Sat Jan 25 09:20:44 2020 14 ## Update Count : 255 15 15 ############################################################################### 16 16 … … 19 19 20 20 # applies to both programs 21 include $(top_srcdir)/ tools/build/cfa.make21 include $(top_srcdir)/src/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))33 32 BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet)) 34 33 BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet)) … … 48 47 __bench_v_UPP_verbose = $(AM_V_UPP) 49 48 __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) 52 50 __bench_v_NODEJS_verbose = $(AM_V_NODEJS) 53 51 __bench_v_JAVAC_verbose = $(AM_V_JAVAC) … … 66 64 # Dummy hack tricks 67 65 EXTRA_PROGRAMS = dummy # build but do not install 68 nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp66 dummy_SOURCES = dummyC.c dummyCXX.cpp 69 67 70 68 dummyC.c: … … 74 72 echo "int main() { return 0; }" > ${@} 75 73 76 .SILENT: # do not print recipe 74 #.SILENT: # do not print recipe 75 .ONESHELL: # use one shell to execute recipe 77 76 .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 81 all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) 86 82 87 83 basic_loop_DURATION = 15000000000 … … 111 107 creation_cfa_coroutine_DURATION = 100000000 112 108 creation_cfa_coroutine_eager_DURATION = 10000000 113 creation_cfa_generator_DURATION = 1000000000114 109 creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION} 110 creation_cfa_thread_DURATION = 10000000 111 creation_upp_thread_DURATION = ${creation_cfa_thread_DURATION} 115 112 creation_DURATION = 10000000 116 113 … … 145 142 FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@ 146 143 147 cleancsv: 148 rm -f compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv 149 150 jenkins$(EXEEXT): cleancsv 144 jenkins$(EXEEXT): 151 145 @DOifskipcompile@ 152 146 +make compile.csv 153 147 -+make compile.diff.csv 154 148 @DOendif@ 149 +make basic.csv 150 -+make basic.diff.csv 155 151 +make ctxswitch.csv 156 152 -+make ctxswitch.diff.csv … … 163 159 -cat compile.diff.csv 164 160 @DOendif@ 161 cat basic.csv 162 -cat basic.diff.csv 165 163 cat ctxswitch.csv 166 164 -cat ctxswitch.diff.csv … … 171 169 172 170 compile.csv: 173 echo "building $@"174 171 echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@ 175 172 +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@ … … 183 180 $(srcdir)/fixcsv.sh $@ 184 181 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 185 189 ctxswitch.csv: 186 echo "building $@"187 190 echo "generator,coroutine,thread" > $@ 188 191 +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@ … … 192 195 193 196 mutex.csv: 194 echo "building $@"195 197 echo "1-monitor,2-monitor" > $@ 196 198 +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@ … … 199 201 200 202 schedint.csv: 201 echo "building $@"202 203 echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@ 203 204 +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@ … … 288 289 289 290 ctxswitch-python_coroutine$(EXEEXT): 290 $(BENCH_V_PY)echo "#!/bin/sh" > a.out291 echo "python3 $(srcdir)/ctxswitch/python_cor.py \"$$""@\"" >> a.out291 echo "#!/bin/sh" > a.out 292 echo "python3.7 $(srcdir)/ctxswitch/python_cor.py" >> a.out 292 293 chmod a+x a.out 293 294 294 295 ctxswitch-nodejs_coroutine$(EXEEXT): 295 $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out296 echo "nodejs $(srcdir)/ctxswitch/node_cor.js \"$$""@\"" >> a.out296 echo "#!/bin/sh" > a.out 297 echo "nodejs $(srcdir)/ctxswitch/node_cor.js" >> a.out 297 298 chmod a+x a.out 298 299 299 300 ctxswitch-nodejs_await$(EXEEXT): 300 $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out301 echo "nodejs $(srcdir)/ctxswitch/node_await.js \"$$""@\"" >> a.out301 echo "#!/bin/sh" > a.out 302 echo "nodejs $(srcdir)/ctxswitch/node_await.js" >> a.out 302 303 chmod a+x a.out 303 304 … … 311 312 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java 312 313 echo "#!/bin/sh" > a.out 313 echo "java JavaThread \"$$""@\"" >> a.out314 echo "java JavaThread" >> a.out 314 315 chmod a+x a.out 315 316 … … 353 354 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 354 355 echo "#!/bin/sh" > a.out 355 echo "java JavaThread \"$$""@\"" >> a.out356 echo "java JavaThread" >> a.out 356 357 chmod a+x a.out 357 358 … … 385 386 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 386 387 echo "#!/bin/sh" > a.out 387 echo "java JavaThread \"$$""@\"" >> a.out388 echo "java JavaThread" >> a.out 388 389 chmod a+x a.out 389 390 … … 451 452 452 453 creation-python_coroutine$(EXEEXT): 453 $(BENCH_V_PY)echo "#!/bin/sh" > a.out454 echo "python3 $(srcdir)/creation/python_cor.py \"$$""@\"" >> a.out454 echo "#!/bin/sh" > a.out 455 echo "python3.7 $(srcdir)/creation/python_cor.py" >> a.out 455 456 chmod a+x a.out 456 457 457 458 creation-nodejs_coroutine$(EXEEXT): 458 $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out459 echo "nodejs $(srcdir)/creation/node_cor.js \"$$""@\"" >> a.out459 echo "#!/bin/sh" > a.out 460 echo "nodejs $(srcdir)/creation/node_cor.js" >> a.out 460 461 chmod a+x a.out 461 462 … … 469 470 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 470 471 echo "#!/bin/sh" > a.out 471 echo "java JavaThread \"$$""@\"" >> a.out472 echo "java JavaThread" >> a.out 472 473 chmod a+x a.out 473 474 … … 477 478 ## ========================================================================================================= 478 479 479 bcompile$(EXEEXT) : \480 compile$(EXEEXT) : \ 480 481 compile-array.make \ 481 482 compile-attributes.make \ … … 490 491 491 492 compile-array$(EXEEXT): 492 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/array.cfa493 $(CFACOMPILE) -fsyntax-only -w $(testdir)/array.cfa 493 494 494 495 compile-attributes$(EXEEXT): 495 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/attributes.cfa496 $(CFACOMPILE) -fsyntax-only -w $(testdir)/attributes.cfa 496 497 497 498 compile-empty$(EXEEXT): 498 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(srcdir)/compile/empty.cfa499 $(CFACOMPILE) -fsyntax-only -w $(srcdir)/compile/empty.cfa 499 500 500 501 compile-expression$(EXEEXT): 501 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/expression.cfa502 $(CFACOMPILE) -fsyntax-only -w $(testdir)/expression.cfa 502 503 503 504 compile-io$(EXEEXT): 504 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/io1.cfa505 $(CFACOMPILE) -fsyntax-only -w $(testdir)/io1.cfa 505 506 506 507 compile-monitor$(EXEEXT): 507 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/monitor.cfa508 $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/monitor.cfa 508 509 509 510 compile-operators$(EXEEXT): 510 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/operators.cfa511 $(CFACOMPILE) -fsyntax-only -w $(testdir)/operators.cfa 511 512 512 513 compile-thread$(EXEEXT): 513 $(CFACOMPILE) - DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/thread.cfa514 $(CFACOMPILE) -fsyntax-only -w $(testdir)/concurrent/thread.cfa 514 515 515 516 compile-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.