source: tests/zombies/string-perf/Makefile @ 01db301

enumpthread-emulationqualifiedEnum
Last change on this file since 01db301 was 01db301, checked in by Michael Brooks <mlbrooks@…>, 11 months ago

Baseline string performance experiment

  • Property mode set to 100644
File size: 2.7 KB
Line 
1
2CFABUILD = ~/cfa2/build-perf
3LIBCFA = $(CFABUILD)/libcfa/*/src/.libs/libcfa.so
4
5CFA = $(CFABUILD)/driver/cfa
6PERFFLAGS_CFA = -nodebug -O2
7PERFFLAGS_CXX = -DNDEBUG -O2
8
9#PERFPROGS can include this one, but it's 10x slower than its peers
10#       perfexp-cfa-hl-pta-noshare \
11
12PERFPROGS = \
13        perfexp-cfa-hl-pta-share \
14        perfexp-cfa-hl-peq-share \
15        perfexp-cfa-ll-pta-share \
16        perfexp-cfa-ll-peq-share \
17        perfexp-cfa-hl-peq-noshare \
18        perfexp-cfa-ll-pta-noshare \
19        perfexp-cfa-ll-peq-noshare \
20        perfexp-stl-pta \
21        perfexp-stl-peq \
22        perfexp-buhr94-pta \
23        perfexp-buhr94-peq
24
25all : $(PERFPROGS)
26
27perfexp-cfa-hl-pta-share : prog.cfa $(LIBCFA)
28        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_HL_SHARE -DOP_PLUS_THEN_ASSIGN
29
30perfexp-cfa-hl-peq-share : prog.cfa $(LIBCFA)
31        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_HL_SHARE -DOP_PLUSEQ
32
33perfexp-cfa-ll-pta-share : prog.cfa $(LIBCFA)
34        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_LL_SHARE -DOP_PLUS_THEN_ASSIGN
35
36perfexp-cfa-ll-peq-share : prog.cfa $(LIBCFA)
37        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_LL_SHARE -DOP_PLUSEQ
38
39perfexp-cfa-hl-pta-noshare : prog.cfa $(LIBCFA)
40        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_HL_NOSHARE -DOP_PLUS_THEN_ASSIGN
41
42perfexp-cfa-hl-peq-noshare : prog.cfa $(LIBCFA)
43        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_HL_NOSHARE -DOP_PLUSEQ
44
45perfexp-cfa-ll-pta-noshare : prog.cfa $(LIBCFA)
46        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_LL_NOSHARE -DOP_PLUS_THEN_ASSIGN
47
48perfexp-cfa-ll-peq-noshare : prog.cfa $(LIBCFA)
49        $(CFA) $(PERFFLAGS_CFA) $^ -o $@ -DIMPL_CFA_LL_NOSHARE -DOP_PLUSEQ
50
51perfexp-stl-pta : prog.cfa
52        $(CXX) -xc++ $(PERFFLAGS_CXX) $^ -o $@ -DIMPL_STL -DOP_PLUS_THEN_ASSIGN
53
54perfexp-stl-peq : prog.cfa
55        $(CXX) -xc++ $(PERFFLAGS_CXX) $^ -o $@ -DIMPL_STL -DOP_PLUSEQ
56
57perfexp-buhr94-pta.o : prog.cfa
58        $(CXX) -xc++ -c $(PERFFLAGS_CXX) $^ -o $@ -DIMPL_BUHR94 -DOP_PLUS_THEN_ASSIGN
59
60perfexp-buhr94-peq.o : prog.cfa
61        $(CXX) -xc++ -c $(PERFFLAGS_CXX) $^ -o $@ -DIMPL_BUHR94 -DOP_PLUSEQ
62
63buhr94-string.o:
64        $(CXX) -xc++ -c $(PERFFLAGS_CXX) ~/usys1/sm/string/StringSharing/src/string.cc -o $@
65
66buhr94-VbyteSM.o:
67        $(CXX) -xc++ -c $(PERFFLAGS_CXX) ~/usys1/sm/string/StringSharing/src/VbyteSM.cc -o $@
68
69perfexp-buhr94-pta : perfexp-buhr94-pta.o buhr94-string.o buhr94-VbyteSM.o
70        $(CXX) $(PERFFLAGS_CXX) $^ -o $@
71
72perfexp-buhr94-peq : perfexp-buhr94-peq.o buhr94-string.o buhr94-VbyteSM.o
73        $(CXX) $(PERFFLAGS_CXX) $^ -o $@
74
75clean:
76        rm -f *.o perfexp*
77
78MEASURE = $(PERFPROGS)
79CORPORI = ../corpus-100-*-1.txt
80
81measurment: $(MEASURE)
82        tofile=measurement-`date '+%F--%H-%M-%S'`.csv ; \
83        echo $$tofile ; \
84        for prog in $(MEASURE) ; do \
85            for corpus in $(CORPORI) ; do \
86                        corpusbody=`cat $$corpus` ; \
87                        printed=`./$$prog $$corpusbody` ; \
88                        echo $$prog,$$corpus,$$printed  >>  $$tofile ; \
89                done ; \
90        done ; \
91        cat $$tofile
Note: See TracBrowser for help on using the repository browser.