Changeset 90cb6f7 for benchmark/Makefile.in
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.