- Timestamp:
- Jan 7, 2020, 3:42:36 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:
- 846c026
- Parents:
- 4834563
- Location:
- benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
r4834563 r90cb6f7 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Mon Jul 29 18:02:19 201914 ## Update Count : 5413 ## Last Modified On : Tue Jan 7 15:37:42 2020 14 ## Update Count : 70 15 15 ############################################################################### 16 16 … … 28 28 BENCH_V_CFA = $(__bench_v_CFA_$(__quiet)) 29 29 BENCH_V_CXX = $(__bench_v_CXX_$(__quiet)) 30 BENCH_V_UPP = $(__bench_v_UPP_$(__quiet)) 30 31 BENCH_V_GOC = $(__bench_v_GOC_$(__quiet)) 32 BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet)) 31 33 BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet)) 32 BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))33 34 34 35 __quiet = verbose … … 36 37 __bench_v_CFA_quiet = @ 37 38 __bench_v_CXX_quiet = @ 39 __bench_v_UPP_quiet = @ 38 40 __bench_v_GOC_quiet = @ 41 __bench_v_RUSTC_quiet = @ 39 42 __bench_v_JAVAC_quiet = @ 40 __bench_v_UPP_quiet = @41 43 __bench_v_CC_verbose = $(AM_V_CC) 42 44 __bench_v_CFA_verbose = $(AM_V_CFA) 43 45 __bench_v_CXX_verbose = $(AM_V_CXX) 46 __bench_v_UPP_verbose = $(AM_V_UPP) 44 47 __bench_v_GOC_verbose = $(AM_V_GOC) 48 __bench_v_RUSTC_verbose = $(AM_V_RUSTC) 45 49 __bench_v_JAVAC_verbose = $(AM_V_JAVAC) 46 __bench_v_UPP_verbose = $(AM_V_UPP)47 50 48 51 … … 68 71 69 72 .NOTPARALLEL: 70 .PHONY: compile.csv ctxswitch.csv mutex.csv signal.csv 71 72 ## ========================================================================================================= 73 all : ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT) 73 .PHONY: compile.csv basic.csv ctxswitch.csv mutex.csv signal.csv 74 75 ## ========================================================================================================= 76 77 all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT) 74 78 75 79 %.run : %$(EXEEXT) ${REPEAT} … … 103 107 @-+make compile.diff.csv 104 108 @DOendif@ 109 @+make basic.csv 110 @-+make basic.diff.csv 105 111 @+make ctxswitch.csv 106 112 @-+make ctxswitch.diff.csv … … 113 119 -cat compile.diff.csv 114 120 @DOendif@ 121 cat basic.csv 122 -cat basic.diff.csv 115 123 cat ctxswitch.csv 116 124 -cat ctxswitch.diff.csv … … 132 140 @$(srcdir)/fixcsv.sh $@ 133 141 142 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 $@ 148 134 149 ctxswitch.csv: 135 150 @echo "generator,coroutine,thread" > $@ … … 157 172 @$(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ 158 173 159 160 ## ========================================================================================================= 161 loop$(EXEEXT): 162 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/loop.c 163 164 function$(EXEEXT): 165 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000000 $(srcdir)/function.c 166 167 fetch_add$(EXEEXT): 168 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/fetch_add.c 169 170 ttst_lock$(EXEEXT): 171 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/ttst_lock.c 172 173 tls-fetch_add$(EXEEXT): 174 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000000 $(srcdir)/tls-fetch_add.c 175 176 ## ========================================================================================================= 177 CTXSWITCH_DEPEND = \ 178 loop.run \ 179 function.run \ 180 fetch_add.run \ 181 ttst_lock.run \ 182 tls-fetch_add.run \ 174 ## ========================================================================================================= 175 176 BASIC_DEPEND = \ 177 basic-loop.run \ 178 basic-function.run \ 179 basic-fetch_add.run \ 180 basic-ttst_lock.run \ 181 basic-tls-fetch_add.run 182 183 basic-loop$(EXEEXT): 184 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c 185 186 basic-function$(EXEEXT): 187 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c 188 189 basic-fetch_add$(EXEEXT): 190 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c 191 192 basic-ttst_lock$(EXEEXT): 193 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c 194 195 basic-tls-fetch_add$(EXEEXT): 196 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c 197 198 basic$(EXEEXT): $(BASIC_DEPEND) 199 200 basic-loop.run : basic-loop$(EXEEXT) ${REPEAT} 201 @rm -f .result.log 202 @echo "------------------------------------------------------" 203 @echo $< 204 @${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log 205 @${STATS} .result.log 206 @echo "------------------------------------------------------" 207 @rm -f a.out .result.log *.class 208 209 basic-function.run : basic-function$(EXEEXT) ${REPEAT} 210 @rm -f .result.log 211 @echo "------------------------------------------------------" 212 @echo $< 213 @${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log 214 @${STATS} .result.log 215 @echo "------------------------------------------------------" 216 @rm -f a.out .result.log *.class 217 218 basic-%.run : basic-%$(EXEEXT) ${REPEAT} 219 @rm -f .result.log 220 @echo "------------------------------------------------------" 221 @echo $< 222 @${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log 223 @${STATS} .result.log 224 @echo "------------------------------------------------------" 225 @rm -f a.out .result.log *.class 226 227 ## ========================================================================================================= 228 229 CTXSWITCH_DEPEND = \ 183 230 ctxswitch-pthread.run \ 184 231 ctxswitch-cfa_generator.run \ … … 189 236 ctxswitch-upp_thread.run \ 190 237 ctxswitch-goroutine.run \ 238 ctxswitch-rust_thread.run \ 239 ctxswitch-nodejs_thread.run \ 191 240 ctxswitch-java_thread.run 192 241 193 194 242 if WITH_LIBFIBRE 195 CTXSWITCH_DEPEND += 196 ctxswitch-kos_fibre.run 243 CTXSWITCH_DEPEND += \ 244 ctxswitch-kos_fibre.run \ 197 245 ctxswitch-kos_fibre2.run 198 199 246 200 247 ctxswitch-kos_fibre$(EXEEXT): … … 208 255 209 256 ctxswitch-pthread$(EXEEXT): 210 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/pthreads.c257 $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c 211 258 212 259 ctxswitch-cfa_generator$(EXEEXT): 213 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_gen.cfa260 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa 214 261 215 262 ctxswitch-cfa_coroutine$(EXEEXT): 216 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_cor.cfa263 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa 217 264 218 265 ctxswitch-cfa_thread$(EXEEXT): 219 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_thrd.cfa266 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa 220 267 221 268 ctxswitch-cfa_thread2$(EXEEXT): 222 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_thrd2.cfa269 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa 223 270 224 271 ctxswitch-upp_coroutine$(EXEEXT): 225 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/upp_cor.cc272 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc 226 273 227 274 ctxswitch-upp_thread$(EXEEXT): 228 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/upp_thrd.cc275 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc 229 276 230 277 ctxswitch-goroutine$(EXEEXT): 231 278 $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go 279 280 ctxswitch-rust_thread$(EXEEXT): 281 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs 232 282 233 283 ctxswitch-java_thread$(EXEEXT): … … 237 287 @chmod a+x a.out 238 288 239 ## ========================================================================================================= 240 mutex$(EXEEXT) :\ 241 loop.run \ 242 function.run \ 243 fetch_add.run \ 244 mutex-pthread_lock.run \ 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 297 298 ctxswitch-%.run : ctxswitch-%$(EXEEXT) ${REPEAT} 299 @rm -f .result.log 300 @echo "------------------------------------------------------" 301 @echo $< 302 @${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log 303 @${STATS} .result.log 304 @echo "------------------------------------------------------" 305 @rm -f a.out .result.log *.class 306 307 ## ========================================================================================================= 308 309 mutex$(EXEEXT) : \ 310 mutex-pthread.run \ 245 311 mutex-upp.run \ 246 312 mutex-cfa1.run \ 247 313 mutex-cfa2.run \ 248 314 mutex-cfa4.run \ 249 mutex-java_thread.run 250 251 mutex-pthread_lock$(EXEEXT): 252 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 315 mutex-go.run \ 316 mutex-rust.run \ 317 mutex-java.run 318 319 mutex-pthread$(EXEEXT): 320 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 253 321 254 322 mutex-upp$(EXEEXT): … … 256 324 257 325 mutex-cfa1$(EXEEXT): 258 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 326 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa1.cfa 259 327 260 328 mutex-cfa2$(EXEEXT): 261 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 329 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa2.cfa 262 330 263 331 mutex-cfa4$(EXEEXT): 264 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 $(srcdir)/mutex/cfa4.cfa 265 266 mutex-java_thread$(EXEEXT): 332 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa4.cfa 333 334 mutex-go$(EXEEXT): 335 $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go 336 337 mutex-rust$(EXEEXT): 338 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs 339 340 mutex-java$(EXEEXT): 267 341 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 268 342 @echo "#!/bin/sh" > a.out … … 271 345 272 346 ## ========================================================================================================= 273 signal$(EXEEXT) :\ 274 signal-pthread_cond.run \ 347 348 signal$(EXEEXT) : \ 349 signal-pthread.run \ 275 350 signal-upp.run \ 276 351 signal-cfa1.run \ 277 352 signal-cfa2.run \ 278 353 signal-cfa4.run \ 279 signal-java_thread.run 280 281 signal-pthread_cond$(EXEEXT): 282 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=500000 $(srcdir)/schedint/pthreads.c 354 signal-rust.run \ 355 signal-java.run 356 357 signal-pthread$(EXEEXT): 358 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/pthreads.c 283 359 284 360 signal-upp$(EXEEXT): 285 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc361 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/upp.cc 286 362 287 363 signal-cfa1$(EXEEXT): 288 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 364 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa1.cfa 289 365 290 366 signal-cfa2$(EXEEXT): 291 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 367 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa2.cfa 292 368 293 369 signal-cfa4$(EXEEXT): 294 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedint/cfa4.cfa 295 296 signal-java_thread$(EXEEXT): 370 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa4.cfa 371 372 signal-rust$(EXEEXT): 373 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs 374 375 signal-java$(EXEEXT): 297 376 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 298 377 @echo "#!/bin/sh" > a.out … … 300 379 @chmod a+x a.out 301 380 302 303 ## ========================================================================================================= 304 waitfor$(EXEEXT) : \381 ## ========================================================================================================= 382 383 waitfor$(EXEEXT) : \ 305 384 waitfor-upp.run \ 306 waitfor-cfa1.run 307 waitfor-cfa2.run 385 waitfor-cfa1.run \ 386 waitfor-cfa2.run \ 308 387 waitfor-cfa4.run 309 388 … … 321 400 322 401 ## ========================================================================================================= 323 creation$(EXEEXT) :\ 402 403 creation$(EXEEXT) : \ 324 404 creation-pthread.run \ 325 405 creation-cfa_coroutine.run \ … … 329 409 creation-upp_thread.run \ 330 410 creation-goroutine.run \ 331 creation-java_thread.run 411 creation-rust.run \ 412 creation-java.run 332 413 333 414 creation-cfa_coroutine$(EXEEXT): … … 347 428 348 429 creation-pthread$(EXEEXT): 349 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000$(srcdir)/creation/pthreads.c430 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c 350 431 351 432 creation-goroutine$(EXEEXT): 352 433 $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go 353 434 354 creation-java_thread$(EXEEXT): 435 creation-rust$(EXEEXT): 436 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs 437 438 creation-java$(EXEEXT): 355 439 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 356 440 @echo "#!/bin/sh" > a.out … … 360 444 ## ========================================================================================================= 361 445 362 compile$(EXEEXT) : \446 compile$(EXEEXT) : \ 363 447 compile-array.make \ 364 448 compile-attributes.make \ … … 370 454 compile-typeof.make 371 455 372 373 456 testdir = $(top_srcdir)/tests 374 457 -
benchmark/Makefile.in
r4834563 r90cb6f7 93 93 EXTRA_PROGRAMS = dummy$(EXEEXT) 94 94 @WITH_LIBFIBRE_TRUE@am__append_1 = \ 95 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre.run 95 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre.run \ 96 96 @WITH_LIBFIBRE_TRUE@ ctxswitch-kos_fibre2.run 97 97 … … 380 380 BENCH_V_CFA = $(__bench_v_CFA_$(__quiet)) 381 381 BENCH_V_CXX = $(__bench_v_CXX_$(__quiet)) 382 BENCH_V_UPP = $(__bench_v_UPP_$(__quiet)) 382 383 BENCH_V_GOC = $(__bench_v_GOC_$(__quiet)) 384 BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet)) 383 385 BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet)) 384 BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))385 386 __quiet = verbose 386 387 __bench_v_CC_quiet = @ 387 388 __bench_v_CFA_quiet = @ 388 389 __bench_v_CXX_quiet = @ 390 __bench_v_UPP_quiet = @ 389 391 __bench_v_GOC_quiet = @ 392 __bench_v_RUSTC_quiet = @ 390 393 __bench_v_JAVAC_quiet = @ 391 __bench_v_UPP_quiet = @392 394 __bench_v_CC_verbose = $(AM_V_CC) 393 395 __bench_v_CFA_verbose = $(AM_V_CFA) 394 396 __bench_v_CXX_verbose = $(AM_V_CXX) 397 __bench_v_UPP_verbose = $(AM_V_UPP) 395 398 __bench_v_GOC_verbose = $(AM_V_GOC) 399 __bench_v_RUSTC_verbose = $(AM_V_RUSTC) 396 400 __bench_v_JAVAC_verbose = $(AM_V_JAVAC) 397 __bench_v_UPP_verbose = $(AM_V_UPP)398 401 TOOLSDIR = ${abs_top_builddir}/tools/ 399 402 REPEAT = ${abs_top_builddir}/tools/repeat … … 407 410 dummy_SOURCES = dummyC.c dummyCXX.cpp 408 411 FIX_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) 412 BASIC_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 419 CTXSWITCH_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) 416 425 testdir = $(top_srcdir)/tests 417 426 all: all-am … … 738 747 739 748 .NOTPARALLEL: 740 .PHONY: compile.csv ctxswitch.csv mutex.csv signal.csv741 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 751 all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT) 743 752 744 753 %.run : %$(EXEEXT) ${REPEAT} … … 768 777 @-+make compile.diff.csv 769 778 @DOendif@ 779 @+make basic.csv 780 @-+make basic.diff.csv 770 781 @+make ctxswitch.csv 771 782 @-+make ctxswitch.diff.csv … … 778 789 -cat compile.diff.csv 779 790 @DOendif@ 791 cat basic.csv 792 -cat basic.diff.csv 780 793 cat ctxswitch.csv 781 794 -cat ctxswitch.diff.csv … … 797 810 @$(srcdir)/fixcsv.sh $@ 798 811 812 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 $@ 818 799 819 ctxswitch.csv: 800 820 @echo "generator,coroutine,thread" > $@ … … 822 842 @$(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@ 823 843 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 844 basic-loop$(EXEEXT): 845 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c 846 847 basic-function$(EXEEXT): 848 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c 849 850 basic-fetch_add$(EXEEXT): 851 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c 852 853 basic-ttst_lock$(EXEEXT): 854 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c 855 856 basic-tls-fetch_add$(EXEEXT): 857 $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c 858 859 basic$(EXEEXT): $(BASIC_DEPEND) 860 861 basic-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 870 basic-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 879 basic-%.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 838 887 839 888 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT): … … 846 895 847 896 ctxswitch-pthread$(EXEEXT): 848 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/pthreads.c897 $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c 849 898 850 899 ctxswitch-cfa_generator$(EXEEXT): 851 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_gen.cfa900 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa 852 901 853 902 ctxswitch-cfa_coroutine$(EXEEXT): 854 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_cor.cfa903 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa 855 904 856 905 ctxswitch-cfa_thread$(EXEEXT): 857 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_thrd.cfa906 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa 858 907 859 908 ctxswitch-cfa_thread2$(EXEEXT): 860 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/cfa_thrd2.cfa909 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa 861 910 862 911 ctxswitch-upp_coroutine$(EXEEXT): 863 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/upp_cor.cc912 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc 864 913 865 914 ctxswitch-upp_thread$(EXEEXT): 866 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/ctxswitch/upp_thrd.cc915 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc 867 916 868 917 ctxswitch-goroutine$(EXEEXT): 869 918 $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go 919 920 ctxswitch-rust_thread$(EXEEXT): 921 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs 870 922 871 923 ctxswitch-java_thread$(EXEEXT): … … 875 927 @chmod a+x a.out 876 928 877 mutex$(EXEEXT) :\ 878 loop.run \ 879 function.run \ 880 fetch_add.run \ 881 mutex-pthread_lock.run \ 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 937 938 ctxswitch-%.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 947 mutex$(EXEEXT) : \ 948 mutex-pthread.run \ 882 949 mutex-upp.run \ 883 950 mutex-cfa1.run \ 884 951 mutex-cfa2.run \ 885 952 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 957 mutex-pthread$(EXEEXT): 958 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/pthreads.c 890 959 891 960 mutex-upp$(EXEEXT): … … 893 962 894 963 mutex-cfa1$(EXEEXT): 895 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 964 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa1.cfa 896 965 897 966 mutex-cfa2$(EXEEXT): 898 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=5000000 967 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/mutex/cfa2.cfa 899 968 900 969 mutex-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 972 mutex-go$(EXEEXT): 973 $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go 974 975 mutex-rust$(EXEEXT): 976 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs 977 978 mutex-java$(EXEEXT): 904 979 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java 905 980 @echo "#!/bin/sh" > a.out … … 907 982 @chmod a+x a.out 908 983 909 signal$(EXEEXT) : \910 signal-pthread _cond.run\984 signal$(EXEEXT) : \ 985 signal-pthread.run \ 911 986 signal-upp.run \ 912 987 signal-cfa1.run \ 913 988 signal-cfa2.run \ 914 989 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 993 signal-pthread$(EXEEXT): 994 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/pthreads.c 919 995 920 996 signal-upp$(EXEEXT): 921 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000 $(srcdir)/schedint/upp.cc997 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/upp.cc 922 998 923 999 signal-cfa1$(EXEEXT): 924 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 1000 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa1.cfa 925 1001 926 1002 signal-cfa2$(EXEEXT): 927 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 1003 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000 $(srcdir)/schedint/cfa2.cfa 928 1004 929 1005 signal-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 1008 signal-rust$(EXEEXT): 1009 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs 1010 1011 signal-java$(EXEEXT): 933 1012 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java 934 1013 @echo "#!/bin/sh" > a.out … … 936 1015 @chmod a+x a.out 937 1016 938 waitfor$(EXEEXT) : \1017 waitfor$(EXEEXT) : \ 939 1018 waitfor-upp.run \ 940 waitfor-cfa1.run 941 waitfor-cfa2.run 1019 waitfor-cfa1.run \ 1020 waitfor-cfa2.run \ 942 1021 waitfor-cfa4.run 943 1022 … … 954 1033 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000 $(srcdir)/schedext/cfa4.cfa 955 1034 956 creation$(EXEEXT) : \1035 creation$(EXEEXT) : \ 957 1036 creation-pthread.run \ 958 1037 creation-cfa_coroutine.run \ … … 962 1041 creation-upp_thread.run \ 963 1042 creation-goroutine.run \ 964 creation-java_thread.run 1043 creation-rust.run \ 1044 creation-java.run 965 1045 966 1046 creation-cfa_coroutine$(EXEEXT): … … 980 1060 981 1061 creation-pthread$(EXEEXT): 982 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000$(srcdir)/creation/pthreads.c1062 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000 $(srcdir)/creation/pthreads.c 983 1063 984 1064 creation-goroutine$(EXEEXT): 985 1065 $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go 986 1066 987 creation-java_thread$(EXEEXT): 1067 creation-rust$(EXEEXT): 1068 $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs 1069 1070 creation-java$(EXEEXT): 988 1071 $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java 989 1072 @echo "#!/bin/sh" > a.out … … 991 1074 @chmod a+x a.out 992 1075 993 compile$(EXEEXT) : \1076 compile$(EXEEXT) : \ 994 1077 compile-array.make \ 995 1078 compile-attributes.make \
Note: See TracChangeset
for help on using the changeset viewer.