Changeset 4eb07bc
- Timestamp:
- Jan 9, 2020, 1:20:22 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:
- c93fd72
- Parents:
- 6e540ea
- Location:
- benchmark
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/Makefile.am
r6e540ea r4eb07bc 11 11 ## Created On : Sun May 31 09:08:15 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : T ue Jan 7 21:04:53202014 ## Update Count : 10513 ## Last Modified On : Thu Jan 9 13:03:04 2020 14 ## Update Count : 203 15 15 ############################################################################### 16 16 … … 72 72 echo "int main() { return 0; }" > ${@} 73 73 74 .SILENT: # do not print recipe74 #.SILENT: # do not print recipe 75 75 .ONESHELL: # use one shell to execute recipe 76 76 .NOTPARALLEL: … … 80 80 81 81 all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) signal$(EXEEXT) waitfor$(EXEEXT) creation$(EXEEXT) 82 83 basic_loop_DURATION = 15000000000 84 basic_function_DURATION = 10000000000 85 basic_DURATION = 250000000 86 87 ctxswitch_pthread_DURATION = 50000000 88 ctxswitch_cfa_generator_DURATION = 5000000000 89 ctxswitch_DURATION = 100000000 90 91 mutex_DURATION = 50000000 92 93 signal_pthread_DURATION = 5000000 94 signal_DURATION = 50000000 95 96 waitfor_upp_DURATION = 5000000 97 waitfor_DURATION = 500000 98 99 creation_cfa_coroutine_DURATION = 10000000 100 creation_cfa_coroutine_eager_DURATION = ${creation_cfa_coroutine_DURATION} 101 creation_cfa_thread_DURATION = ${creation_cfa_coroutine_DURATION} 102 creation_upp_coroutine_DURATION = 50000000 103 creation_upp_thread_DURATION = ${creation_upp_coroutine_DURATION} 104 creation_pthread_DURATION = 250000 105 creation_DURATION = 50000000 106 82 107 83 108 %.run : %$(EXEEXT) ${REPEAT} … … 85 110 echo "------------------------------------------------------" 86 111 echo $< 87 ${REPEAT} ${repeats} ./a.out| tee -a .result.log112 ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out $(if ${$(subst -,_,$(basename $@))_DURATION},${$(subst -,_,$(basename $@))_DURATION},${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log 88 113 ${STATS} .result.log 89 114 echo "------------------------------------------------------" … … 178 203 ## ========================================================================================================= 179 204 180 BASIC_DEPEND = \181 basic-loop.run \205 BASIC_DEPEND = \ 206 basic-loop.run \ 182 207 basic-function.run \ 183 208 basic-fetch_add.run \ … … 201 226 202 227 basic$(EXEEXT): $(BASIC_DEPEND) 203 204 basic-loop.run : basic-loop$(EXEEXT) ${REPEAT}205 rm -f .result.log206 echo "------------------------------------------------------"207 echo $<208 ${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log209 ${STATS} .result.log210 echo "------------------------------------------------------"211 rm -f a.out .result.log *.class212 213 basic-function.run : basic-function$(EXEEXT) ${REPEAT}214 rm -f .result.log215 echo "------------------------------------------------------"216 echo $<217 ${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log218 ${STATS} .result.log219 echo "------------------------------------------------------"220 rm -f a.out .result.log *.class221 222 basic-%.run : basic-%$(EXEEXT) ${REPEAT}223 rm -f .result.log224 echo "------------------------------------------------------"225 echo $<226 ${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log227 ${STATS} .result.log228 echo "------------------------------------------------------"229 rm -f a.out .result.log *.class230 228 231 229 ## ========================================================================================================= … … 286 284 287 285 ctxswitch-nodejs_coroutine$(EXEEXT): 286 echo "#!/bin/sh" > a.out 287 echo "node $(srcdir)/ctxswitch/node_cor.js" >> a.out 288 chmod a+x a.out 288 289 289 290 ctxswitch-java_thread$(EXEEXT): … … 292 293 echo "java JavaThread" >> a.out 293 294 chmod a+x a.out 294 295 ctxswitch-nodejs_coroutine.run : ctxswitch-nodejs_coroutine$(EXEEXT) ${REPEAT}296 rm -f .result.log297 echo "------------------------------------------------------"298 echo $<299 for (( i = 1; i <= ${repeats}; i += 1 )) ; do300 node $(srcdir)/ctxswitch/node_cor.js 50000000 | tee -a .result.log301 done302 ${STATS} .result.log303 echo "------------------------------------------------------"304 rm -f a.out .result.log *.class305 306 ctxswitch-%.run : ctxswitch-%$(EXEEXT) ${REPEAT}307 rm -f .result.log308 echo "------------------------------------------------------"309 echo $<310 ${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log311 ${STATS} .result.log312 echo "------------------------------------------------------"313 rm -f a.out .result.log *.class314 295 315 296 ## ========================================================================================================= … … 326 307 327 308 mutex-pthread$(EXEEXT): 328 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000$(srcdir)/mutex/pthreads.c309 $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c 329 310 330 311 mutex-upp$(EXEEXT): 331 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/upp.cc312 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc 332 313 333 314 mutex-cfa1$(EXEEXT): 334 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/cfa1.cfa315 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa 335 316 336 317 mutex-cfa2$(EXEEXT): 337 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/cfa2.cfa318 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa 338 319 339 320 mutex-cfa4$(EXEEXT): 340 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/cfa4.cfa321 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa 341 322 342 323 mutex-go$(EXEEXT): … … 364 345 365 346 signal-pthread$(EXEEXT): 366 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000$(srcdir)/schedint/pthreads.c347 $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c 367 348 368 349 signal-upp$(EXEEXT): 369 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/upp.cc350 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc 370 351 371 352 signal-cfa1$(EXEEXT): 372 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/cfa1.cfa353 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa 373 354 374 355 signal-cfa2$(EXEEXT): 375 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/cfa2.cfa356 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa 376 357 377 358 signal-cfa4$(EXEEXT): 378 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/cfa4.cfa359 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa 379 360 380 361 signal-rust$(EXEEXT): … … 396 377 397 378 waitfor-upp$(EXEEXT): 398 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000$(srcdir)/schedext/upp.cc379 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc 399 380 400 381 waitfor-cfa1$(EXEEXT): 401 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000$(srcdir)/schedext/cfa1.cfa382 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa 402 383 403 384 waitfor-cfa2$(EXEEXT): 404 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000$(srcdir)/schedext/cfa2.cfa385 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa 405 386 406 387 waitfor-cfa4$(EXEEXT): 407 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000$(srcdir)/schedext/cfa4.cfa388 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa 408 389 409 390 ## ========================================================================================================= … … 421 402 422 403 creation-cfa_coroutine$(EXEEXT): 423 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000$(srcdir)/creation/cfa_cor.cfa404 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa 424 405 425 406 creation-cfa_coroutine_eager$(EXEEXT): 426 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000$(srcdir)/creation/cfa_cor.cfa -DEAGER407 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa -DEAGER 427 408 428 409 creation-cfa_thread$(EXEEXT): 429 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000$(srcdir)/creation/cfa_thrd.cfa410 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa 430 411 431 412 creation-upp_coroutine$(EXEEXT): 432 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/creation/upp_cor.cc413 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc 433 414 434 415 creation-upp_thread$(EXEEXT): 435 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/creation/upp_thrd.cc416 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc 436 417 437 418 creation-pthread$(EXEEXT): 438 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000$(srcdir)/creation/pthreads.c419 $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c 439 420 440 421 creation-goroutine$(EXEEXT): -
benchmark/Makefile.in
r6e540ea r4eb07bc 419 419 PRINT_FORMAT = %20s: #Comments needed for spacing 420 420 dummy_SOURCES = dummyC.c dummyCXX.cpp 421 basic_loop_DURATION = 15000000000 422 basic_function_DURATION = 10000000000 423 basic_DURATION = 250000000 424 ctxswitch_pthread_DURATION = 50000000 425 ctxswitch_cfa_generator_DURATION = 5000000000 426 ctxswitch_DURATION = 100000000 427 mutex_DURATION = 50000000 428 signal_pthread_DURATION = 5000000 429 signal_DURATION = 50000000 430 waitfor_upp_DURATION = 5000000 431 waitfor_DURATION = 500000 432 creation_cfa_coroutine_DURATION = 10000000 433 creation_cfa_coroutine_eager_DURATION = ${creation_cfa_coroutine_DURATION} 434 creation_cfa_thread_DURATION = ${creation_cfa_coroutine_DURATION} 435 creation_upp_coroutine_DURATION = 50000000 436 creation_upp_thread_DURATION = ${creation_upp_coroutine_DURATION} 437 creation_pthread_DURATION = 250000 438 creation_DURATION = 50000000 421 439 FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@ 422 440 BASIC_DEPEND = \ 423 basic-loop.run \441 basic-loop.run \ 424 442 basic-function.run \ 425 443 basic-fetch_add.run \ … … 756 774 echo "int main() { return 0; }" > ${@} 757 775 758 .SILENT: # do not print recipe776 #.SILENT: # do not print recipe 759 777 .ONESHELL: # use one shell to execute recipe 760 778 .NOTPARALLEL: … … 767 785 echo "------------------------------------------------------" 768 786 echo $< 769 ${REPEAT} ${repeats} ./a.out| tee -a .result.log787 ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out $(if ${$(subst -,_,$(basename $@))_DURATION},${$(subst -,_,$(basename $@))_DURATION},${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log 770 788 ${STATS} .result.log 771 789 echo "------------------------------------------------------" … … 871 889 basic$(EXEEXT): $(BASIC_DEPEND) 872 890 873 basic-loop.run : basic-loop$(EXEEXT) ${REPEAT}874 rm -f .result.log875 echo "------------------------------------------------------"876 echo $<877 ${REPEAT} ${repeats} ./a.out 10000000000 | tee -a .result.log878 ${STATS} .result.log879 echo "------------------------------------------------------"880 rm -f a.out .result.log *.class881 882 basic-function.run : basic-function$(EXEEXT) ${REPEAT}883 rm -f .result.log884 echo "------------------------------------------------------"885 echo $<886 ${REPEAT} ${repeats} ./a.out 5000000000 | tee -a .result.log887 ${STATS} .result.log888 echo "------------------------------------------------------"889 rm -f a.out .result.log *.class890 891 basic-%.run : basic-%$(EXEEXT) ${REPEAT}892 rm -f .result.log893 echo "------------------------------------------------------"894 echo $<895 ${REPEAT} ${repeats} ./a.out 500000000 | tee -a .result.log896 ${STATS} .result.log897 echo "------------------------------------------------------"898 rm -f a.out .result.log *.class899 900 891 @WITH_LIBFIBRE_TRUE@ctxswitch-kos_fibre$(EXEEXT): 901 892 @WITH_LIBFIBRE_TRUE@ $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp -I$(LIBFIBRE_DIR) -lfibre … … 934 925 935 926 ctxswitch-nodejs_coroutine$(EXEEXT): 927 echo "#!/bin/sh" > a.out 928 echo "node $(srcdir)/ctxswitch/node_cor.js" >> a.out 929 chmod a+x a.out 936 930 937 931 ctxswitch-java_thread$(EXEEXT): … … 940 934 echo "java JavaThread" >> a.out 941 935 chmod a+x a.out 942 943 ctxswitch-nodejs_coroutine.run : ctxswitch-nodejs_coroutine$(EXEEXT) ${REPEAT}944 rm -f .result.log945 echo "------------------------------------------------------"946 echo $<947 for (( i = 1; i <= ${repeats}; i += 1 )) ; do948 node $(srcdir)/ctxswitch/node_cor.js 50000000 | tee -a .result.log949 done950 ${STATS} .result.log951 echo "------------------------------------------------------"952 rm -f a.out .result.log *.class953 954 ctxswitch-%.run : ctxswitch-%$(EXEEXT) ${REPEAT}955 rm -f .result.log956 echo "------------------------------------------------------"957 echo $<958 ${REPEAT} ${repeats} ./a.out 50000000 | tee -a .result.log959 ${STATS} .result.log960 echo "------------------------------------------------------"961 rm -f a.out .result.log *.class962 936 963 937 mutex$(EXEEXT) : \ … … 972 946 973 947 mutex-pthread$(EXEEXT): 974 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=50000000$(srcdir)/mutex/pthreads.c948 $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c 975 949 976 950 mutex-upp$(EXEEXT): 977 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/upp.cc951 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc 978 952 979 953 mutex-cfa1$(EXEEXT): 980 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/cfa1.cfa954 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa 981 955 982 956 mutex-cfa2$(EXEEXT): 983 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/cfa2.cfa957 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa 984 958 985 959 mutex-cfa4$(EXEEXT): 986 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/mutex/cfa4.cfa960 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa 987 961 988 962 mutex-go$(EXEEXT): … … 1008 982 1009 983 signal-pthread$(EXEEXT): 1010 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=5000000$(srcdir)/schedint/pthreads.c984 $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c 1011 985 1012 986 signal-upp$(EXEEXT): 1013 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/upp.cc987 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc 1014 988 1015 989 signal-cfa1$(EXEEXT): 1016 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/cfa1.cfa990 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa 1017 991 1018 992 signal-cfa2$(EXEEXT): 1019 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/cfa2.cfa993 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa 1020 994 1021 995 signal-cfa4$(EXEEXT): 1022 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=50000000$(srcdir)/schedint/cfa4.cfa996 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa 1023 997 1024 998 signal-rust$(EXEEXT): … … 1038 1012 1039 1013 waitfor-upp$(EXEEXT): 1040 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=5000000$(srcdir)/schedext/upp.cc1014 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc 1041 1015 1042 1016 waitfor-cfa1$(EXEEXT): 1043 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000$(srcdir)/schedext/cfa1.cfa1017 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa 1044 1018 1045 1019 waitfor-cfa2$(EXEEXT): 1046 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000$(srcdir)/schedext/cfa2.cfa1020 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa 1047 1021 1048 1022 waitfor-cfa4$(EXEEXT): 1049 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=500000$(srcdir)/schedext/cfa4.cfa1023 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa 1050 1024 1051 1025 creation$(EXEEXT) : \ … … 1061 1035 1062 1036 creation-cfa_coroutine$(EXEEXT): 1063 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000$(srcdir)/creation/cfa_cor.cfa1037 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa 1064 1038 1065 1039 creation-cfa_coroutine_eager$(EXEEXT): 1066 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000$(srcdir)/creation/cfa_cor.cfa -DEAGER1040 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa -DEAGER 1067 1041 1068 1042 creation-cfa_thread$(EXEEXT): 1069 $(BENCH_V_CFA)$(CFACOMPILE) -DBENCH_N=10000000$(srcdir)/creation/cfa_thrd.cfa1043 $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa 1070 1044 1071 1045 creation-upp_coroutine$(EXEEXT): 1072 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/creation/upp_cor.cc1046 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc 1073 1047 1074 1048 creation-upp_thread$(EXEEXT): 1075 $(BENCH_V_UPP)$(UPPCOMPILE) -DBENCH_N=50000000$(srcdir)/creation/upp_thrd.cc1049 $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc 1076 1050 1077 1051 creation-pthread$(EXEEXT): 1078 $(BENCH_V_CC)$(COMPILE) -DBENCH_N=250000$(srcdir)/creation/pthreads.c1052 $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c 1079 1053 1080 1054 creation-goroutine$(EXEEXT):
Note: See TracChangeset
for help on using the changeset viewer.