source: benchmark/Makefile.am @ dd1cc02

enumforall-pointer-decay
Last change on this file since dd1cc02 was dd1cc02, checked in by Thierry Delisle <tdelisle@…>, 8 months ago

Several changes to benchmark makefile for benchmarks for my thesis

  • Property mode set to 100644
File size: 17.1 KB
Line 
1######################## -*- Mode: Makefile-Automake -*- ######################
2##
3## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
4##
5## The contents of this file are covered under the licence agreement in the
6## file "LICENCE" distributed with Cforall.
7##
8## Makefile.am --
9##
10## Author           : Peter A. Buhr
11## Created On       : Sun May 31 09:08:15 2015
12## Last Modified By : Peter A. Buhr
13## Last Modified On : Tue Mar 10 11:41:18 2020
14## Update Count     : 258
15###############################################################################
16
17AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
18ACLOCAL_AMFLAGS  = -I automake
19
20# applies to both programs
21include $(top_srcdir)/tools/build/cfa.make
22
23AM_CFLAGS = -O3 -Wall -Wextra -I$(srcdir) -lrt -pthread # -Werror
24AM_CFAFLAGS = -quiet -nodebug
25AM_UPPFLAGS = -quiet -nodebug -multi -std=c++14
26
27BENCH_V_CC = $(__bench_v_CC_$(__quiet))
28BENCH_V_CFA = $(__bench_v_CFA_$(__quiet))
29BENCH_V_CXX = $(__bench_v_CXX_$(__quiet))
30BENCH_V_UPP = $(__bench_v_UPP_$(__quiet))
31BENCH_V_GOC = $(__bench_v_GOC_$(__quiet))
32BENCH_V_PY = $(__bench_v_PY_$(__quiet))
33BENCH_V_RUSTC = $(__bench_v_RUSTC_$(__quiet))
34BENCH_V_NODEJS = $(__bench_v_NODEJS_$(__quiet))
35BENCH_V_JAVAC = $(__bench_v_JAVAC_$(__quiet))
36
37__quiet = verbose
38__bench_v_CC_quiet = @
39__bench_v_CFA_quiet = @
40__bench_v_CXX_quiet = @
41__bench_v_UPP_quiet = @
42__bench_v_GOC_quiet = @
43__bench_v_RUSTC_quiet = @
44__bench_v_JAVAC_quiet = @
45__bench_v_CC_verbose = $(AM_V_CC)
46__bench_v_CFA_verbose = $(AM_V_CFA)
47__bench_v_CXX_verbose = $(AM_V_CXX)
48__bench_v_UPP_verbose = $(AM_V_UPP)
49__bench_v_GOC_verbose = $(AM_V_GOC)
50__bench_v_PY_verbose = $(AM_V_PY)
51__bench_v_RUSTC_verbose = $(AM_V_RUST)
52__bench_v_NODEJS_verbose = $(AM_V_NODEJS)
53__bench_v_JAVAC_verbose = $(AM_V_JAVAC)
54
55
56TOOLSDIR = ${abs_top_builddir}/tools/
57REPEAT   = ${abs_top_builddir}/tools/repeat
58STATS    = ${abs_top_srcdir}/tools/stat.py
59# NEED AT LEAST 4 DATA VALUES FOR BENCHMARKS BECAUSE THE MAX AND MIN VALUES ARE REMOVED
60repeats  = 13 # 31 for benchmarks
61arch     = x64
62skipcompile = no
63TIME_FORMAT = "%E"
64PRINT_FORMAT = %20s: #Comments needed for spacing
65
66# Dummy hack tricks
67EXTRA_PROGRAMS = dummy # build but do not install
68nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp
69
70dummyC.c:
71        echo "int main() { return 0; }" > ${@}
72
73dummyCXX.cpp:
74        echo "int main() { return 0; }" > ${@}
75
76.NOTPARALLEL:
77.PHONY: jenkins cleancsv
78
79## =========================================================================================================
80
81# all is used by make dist so ignore it
82all:
83
84all-bench : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT)
85
86basic_loop_DURATION = 15000000000
87basic_function_DURATION = 10000000000
88basic_tls_fetch_add_DURATION = 10000000000
89basic_DURATION = 250000000
90
91ctxswitch_pthread_DURATION = 25000000
92ctxswitch_rust_thread_DURATION = $(ctxswitch_pthread_DURATION)
93ctxswitch_cfa_generator_DURATION = 5000000000
94ctxswitch_nodejs_await_DURATION = 5000000
95ctxswitch_DURATION = 100000000
96
97#mutex_java_DURATION = 10000000
98mutex_DURATION = 50000000
99
100schedint_pthread_DURATION = 1000000
101schedint_java_DURATION = $(schedint_pthread_DURATION)
102schedint_rust_DURATION = $(schedint_pthread_DURATION)
103schedint_DURATION = 10000000
104
105schedext_DURATION = 10000000
106
107creation_pthread_DURATION = 250000
108creation_rust_thread_DURATION = ${creation_pthread_DURATION}
109creation_java_thread_DURATION = ${creation_pthread_DURATION}
110creation_cfa_coroutine_DURATION = 100000000
111creation_cfa_coroutine_eager_DURATION = 10000000
112creation_cfa_generator_DURATION = 1000000000
113creation_upp_coroutine_DURATION = ${creation_cfa_coroutine_eager_DURATION}
114creation_DURATION = 10000000
115
116%.run : %$(EXEEXT) ${REPEAT}
117        @rm -f .result.log
118        @echo "------------------------------------------------------"
119        @echo $<
120        @${REPEAT} ${repeats} -- ./a.out\
121                $(if ${$(subst -,_,$(basename $@))_DURATION},\
122                        ${$(subst -,_,$(basename $@))_DURATION},\
123                        ${$(firstword $(subst -, ,$(basename $@)))_DURATION}) | tee -a .result.log
124        @${STATS} .result.log
125        @echo "------------------------------------------------------"
126        @rm -f a.out .result.log *.class
127
128#       ${REPEAT} ${repeats} -- /usr/bin/time -f "%Uu %Ss %Er %Mkb" ./a.out
129
130%.runquiet :
131        +make $(basename $@) CFLAGS="-w" __quiet=quiet
132        taskset -c 1 ./a.out
133        rm -f a.out
134
135%.make :
136        printf "${PRINT_FORMAT}" $(basename $(subst compile-,,$@))
137        +/usr/bin/time -f ${TIME_FORMAT} make $(basename $@) 2>&1
138
139${REPEAT} :
140        +make -C ${abs_top_builddir}/tools repeat
141
142## =========================================================================================================
143
144FIX_NEW_LINES = cat $@ | tr "\n" "\t" | sed -r 's/\t,/,/' | tr "\t" "\n" > $@
145
146cleancsv:
147        rm -f compile.csv basic.csv ctxswitch.csv mutex.csv schedint.csv
148
149jenkins$(EXEEXT): cleancsv
150@DOifskipcompile@
151        @+make --silent compile.csv
152        @-+make --silent compile.diff.csv
153@DOendif@
154        @+make --silent ctxswitch.csv
155        @-+make --silent ctxswitch.diff.csv
156        @+make --silent mutex.csv
157        @-+make --silent mutex.diff.csv
158        @+make --silent schedint.csv
159        @-+make --silent schedint.diff.csv
160@DOifskipcompile@
161        cat compile.csv
162        -cat compile.diff.csv
163@DOendif@
164        cat ctxswitch.csv
165        -cat ctxswitch.diff.csv
166        cat mutex.csv
167        -cat mutex.diff.csv
168        cat schedint.csv
169        -cat schedint.diff.csv
170
171compile.csv:
172        echo "building $@"
173        echo "array,attributes,empty,expression,io,monitor,operators,typeof" > $@
174        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-array.make >> $@
175        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-attributes.make >> $@
176        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-empty.make >> $@
177        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-expression.make >> $@
178        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-io.make >> $@
179        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-monitor.make >> $@
180        +make TIME_FORMAT='%e,' PRINT_FORMAT='' compile-operators.make >> $@
181        +make TIME_FORMAT='%e' PRINT_FORMAT='' compile-typeof.make >> $@
182        $(srcdir)/fixcsv.sh $@
183
184ctxswitch.csv:
185        echo "building $@"
186        echo "generator,coroutine,thread" > $@
187        +make ctxswitch-cfa_generator.runquiet >> $@ && echo -n ',' >> $@
188        +make ctxswitch-cfa_coroutine.runquiet >> $@ && echo -n ',' >> $@
189        +make ctxswitch-cfa_thread.runquiet >> $@
190        $(srcdir)/fixcsv.sh $@
191
192mutex.csv:
193        echo "building $@"
194        echo "1-monitor,2-monitor" > $@
195        +make mutex-cfa1.runquiet >> $@ && echo -n ',' >> $@
196        +make mutex-cfa2.runquiet >> $@
197        $(srcdir)/fixcsv.sh $@
198
199schedint.csv:
200        echo "building $@"
201        echo "schedint-1,schedint-2,schedext-1,schedext-2" > $@
202        +make schedint-cfa1.runquiet >> $@ && echo -n ',' >> $@
203        +make schedint-cfa2.runquiet >> $@ && echo -n ',' >> $@
204        +make schedext-cfa1.runquiet >> $@ && echo -n ',' >> $@
205        +make schedext-cfa2.runquiet >> $@
206        $(srcdir)/fixcsv.sh $@
207
208%.diff.csv: %.csv
209        test -e $(srcdir)/baselines/$(arch)/$< || (echo "Error : Missing baseline for ${<}" && false)
210        $(srcdir)/baselines/calc.py $(srcdir)/baselines/$(arch)/$(<) $(<) > $@
211
212## =========================================================================================================
213
214BASIC_DEPEND  =                                 \
215        basic-loop.run                          \
216        basic-function.run                      \
217        basic-fetch_add.run                     \
218        basic-ttst_lock.run                     \
219        basic-tls-fetch_add.run
220
221basic-loop$(EXEEXT):
222        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/loop.c
223
224basic-function$(EXEEXT):
225        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/function.c
226
227basic-fetch_add$(EXEEXT):
228        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/fetch_add.c
229
230basic-ttst_lock$(EXEEXT):
231        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/ttst_lock.c
232
233basic-tls-fetch_add$(EXEEXT):
234        $(BENCH_V_CC)$(COMPILE) $(srcdir)/basic/tls_fetch_add.c
235
236basic$(EXEEXT): $(BASIC_DEPEND)
237
238## =========================================================================================================
239
240CTXSWITCH_DEPEND  =                     \
241        ctxswitch-cfa_generator.run     \
242        ctxswitch-cfa_coroutine.run     \
243        ctxswitch-cfa_thread.run        \
244        ctxswitch-cfa_thread2.run       \
245        ctxswitch-upp_coroutine.run     \
246        ctxswitch-upp_thread.run        \
247        ctxswitch-python_coroutine.run  \
248        ctxswitch-nodejs_coroutine.run  \
249        ctxswitch-nodejs_await.run      \
250        ctxswitch-goroutine_thread.run  \
251        ctxswitch-rust_thread.run       \
252        ctxswitch-nodejs_coroutine.run  \
253        ctxswitch-java_thread.run       \
254        ctxswitch-pthread.run
255
256if WITH_LIBFIBRE
257CTXSWITCH_DEPEND  +=                    \
258        ctxswitch-kos_fibre.run         \
259        ctxswitch-kos_fibre2.run
260
261ctxswitch-kos_fibre$(EXEEXT):
262        $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre.cpp  -I$(LIBFIBRE_DIR) -lfibre
263
264ctxswitch-kos_fibre2$(EXEEXT):
265        $(BENCH_V_CXX)$(CXXCOMPILE) -DBENCH_N=50000000 $(srcdir)/ctxswitch/kos_fibre2.cpp -I$(LIBFIBRE_DIR) -lfibre
266endif
267
268ctxswitch$(EXEEXT): $(CTXSWITCH_DEPEND)
269
270ctxswitch-cfa_generator$(EXEEXT):
271        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_gen.cfa
272
273ctxswitch-cfa_coroutine$(EXEEXT):
274        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_cor.cfa
275
276ctxswitch-cfa_thread$(EXEEXT):
277        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd.cfa
278
279ctxswitch-cfa_thread2$(EXEEXT):
280        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/ctxswitch/cfa_thrd2.cfa
281
282ctxswitch-upp_coroutine$(EXEEXT):
283        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_cor.cc
284
285ctxswitch-upp_thread$(EXEEXT):
286        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/ctxswitch/upp_thrd.cc
287
288ctxswitch-python_coroutine$(EXEEXT):
289        $(BENCH_V_PY)echo "#!/bin/sh" > a.out
290        echo "python3 $(srcdir)/ctxswitch/python_cor.py \"$$""@\"" >> a.out
291        chmod a+x a.out
292
293ctxswitch-nodejs_coroutine$(EXEEXT):
294        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
295        echo "nodejs $(srcdir)/ctxswitch/node_cor.js \"$$""@\"" >> a.out
296        chmod a+x a.out
297
298ctxswitch-nodejs_await$(EXEEXT):
299        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
300        echo "nodejs $(srcdir)/ctxswitch/node_await.js \"$$""@\"" >> a.out
301        chmod a+x a.out
302
303ctxswitch-goroutine_thread$(EXEEXT):
304        $(BENCH_V_GOC)go build -o a.out $(srcdir)/ctxswitch/goroutine.go
305
306ctxswitch-rust_thread$(EXEEXT):
307        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/ctxswitch/rust_thrd.rs
308
309ctxswitch-java_thread$(EXEEXT):
310        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/ctxswitch/JavaThread.java
311        echo "#!/bin/sh" > a.out
312        echo "java JavaThread \"$$""@\"" >> a.out
313        chmod a+x a.out
314
315ctxswitch-pthread$(EXEEXT):
316        $(BENCH_V_CC)$(COMPILE) $(srcdir)/ctxswitch/pthreads.c
317
318## =========================================================================================================
319
320mutex$(EXEEXT) :                \
321        mutex-cfa1.run          \
322        mutex-cfa2.run          \
323        mutex-cfa4.run          \
324        mutex-upp.run           \
325        mutex-go.run            \
326        mutex-rust.run          \
327        mutex-java.run          \
328        mutex-pthread.run
329
330mutex-pthread$(EXEEXT):
331        $(BENCH_V_CC)$(COMPILE) $(srcdir)/mutex/pthreads.c
332
333mutex-cfa1$(EXEEXT):
334        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa1.cfa
335
336mutex-cfa2$(EXEEXT):
337        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa2.cfa
338
339mutex-cfa4$(EXEEXT):
340        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/mutex/cfa4.cfa
341
342mutex-upp$(EXEEXT):
343        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/mutex/upp.cc
344
345mutex-go$(EXEEXT):
346        $(BENCH_V_GOC)go build -o a.out $(srcdir)/mutex/goroutine.go
347
348mutex-rust$(EXEEXT):
349        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/mutex/rust.rs
350
351mutex-java$(EXEEXT):
352        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/mutex/JavaThread.java
353        echo "#!/bin/sh" > a.out
354        echo "java JavaThread \"$$""@\"" >> a.out
355        chmod a+x a.out
356
357## =========================================================================================================
358
359schedint$(EXEEXT) :             \
360        schedint-cfa1.run       \
361        schedint-cfa2.run       \
362        schedint-cfa4.run       \
363        schedint-upp.run        \
364        schedint-rust.run       \
365        schedint-java.run       \
366        schedint-pthread.run
367
368schedint-cfa1$(EXEEXT):
369        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa1.cfa
370
371schedint-cfa2$(EXEEXT):
372        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa2.cfa
373
374schedint-cfa4$(EXEEXT):
375        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedint/cfa4.cfa
376
377schedint-upp$(EXEEXT):
378        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedint/upp.cc
379
380schedint-rust$(EXEEXT):
381        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/schedint/rust.rs
382
383schedint-java$(EXEEXT):
384        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/schedint/JavaThread.java
385        echo "#!/bin/sh" > a.out
386        echo "java JavaThread \"$$""@\"" >> a.out
387        chmod a+x a.out
388
389schedint-pthread$(EXEEXT):
390        $(BENCH_V_CC)$(COMPILE) $(srcdir)/schedint/pthreads.c
391
392## =========================================================================================================
393
394schedext$(EXEEXT) :             \
395        schedext-cfa1.run       \
396        schedext-cfa2.run       \
397        schedext-cfa4.run       \
398        schedext-upp.run        \
399        schedext-goroutine.run
400
401schedext-cfa1$(EXEEXT):
402        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa1.cfa
403
404schedext-cfa2$(EXEEXT):
405        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa2.cfa
406
407schedext-cfa4$(EXEEXT):
408        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/schedext/cfa4.cfa
409
410schedext-upp$(EXEEXT):
411        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/schedext/upp.cc
412
413schedext-goroutine$(EXEEXT):
414        $(BENCH_V_GOC)go build -o a.out $(srcdir)/schedext/goroutine.go
415
416
417## =========================================================================================================
418
419creation$(EXEEXT) :                             \
420        creation-cfa_generator.run              \
421        creation-cfa_coroutine.run              \
422        creation-cfa_coroutine_eager.run        \
423        creation-cfa_thread.run                 \
424        creation-upp_coroutine.run              \
425        creation-upp_thread.run                 \
426        creation-python_coroutine.run           \
427        creation-nodejs_coroutine.run           \
428        creation-goroutine_thread.run           \
429        creation-rust_thread.run                \
430        creation-java_thread.run                \
431        creation-pthread.run
432
433creation-cfa_generator$(EXEEXT):
434        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_gen.cfa
435
436creation-cfa_coroutine$(EXEEXT):
437        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa
438
439creation-cfa_coroutine_eager$(EXEEXT):
440        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_cor.cfa  -DEAGER
441
442creation-cfa_thread$(EXEEXT):
443        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/creation/cfa_thrd.cfa
444
445creation-upp_coroutine$(EXEEXT):
446        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_cor.cc
447
448creation-upp_thread$(EXEEXT):
449        $(BENCH_V_UPP)$(UPPCOMPILE) $(srcdir)/creation/upp_thrd.cc
450
451creation-python_coroutine$(EXEEXT):
452        $(BENCH_V_PY)echo "#!/bin/sh" > a.out
453        echo "python3 $(srcdir)/creation/python_cor.py \"$$""@\"" >> a.out
454        chmod a+x a.out
455
456creation-nodejs_coroutine$(EXEEXT):
457        $(BENCH_V_NODEJS)echo "#!/bin/sh" > a.out
458        echo "nodejs $(srcdir)/creation/node_cor.js \"$$""@\"" >> a.out
459        chmod a+x a.out
460
461creation-goroutine_thread$(EXEEXT):
462        $(BENCH_V_GOC)go build -o a.out $(srcdir)/creation/goroutine.go
463
464creation-rust_thread$(EXEEXT):
465        $(BENCH_V_RUSTC)rustc -C opt-level=3 -o a.out $(srcdir)/creation/rust_thrd.rs
466
467creation-java_thread$(EXEEXT):
468        $(BENCH_V_JAVAC)javac -d $(builddir) $(srcdir)/creation/JavaThread.java
469        echo "#!/bin/sh" > a.out
470        echo "java JavaThread \"$$""@\"" >> a.out
471        chmod a+x a.out
472
473creation-pthread$(EXEEXT):
474        $(BENCH_V_CC)$(COMPILE) $(srcdir)/creation/pthreads.c
475
476## =========================================================================================================
477
478bcompile$(EXEEXT) :             \
479        compile-array.make      \
480        compile-attributes.make \
481        compile-empty.make      \
482        compile-expression.make \
483        compile-io.make         \
484        compile-monitor.make    \
485        compile-operators.make  \
486        compile-typeof.make
487
488testdir = $(top_srcdir)/tests
489
490compile-array$(EXEEXT):
491        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/array.cfa
492
493compile-attributes$(EXEEXT):
494        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/attributes.cfa
495
496compile-empty$(EXEEXT):
497        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(srcdir)/compile/empty.cfa
498
499compile-expression$(EXEEXT):
500        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/expression.cfa
501
502compile-io$(EXEEXT):
503        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/io/io.cfa
504
505compile-monitor$(EXEEXT):
506        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/monitor.cfa
507
508compile-operators$(EXEEXT):
509        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/operators.cfa
510
511compile-thread$(EXEEXT):
512        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/concurrent/thread.cfa
513
514compile-typeof$(EXEEXT):
515        $(CFACOMPILE) -DNO_COMPILED_PRAGMA -fsyntax-only -w $(testdir)/typeof.cfa
516
517## =========================================================================================================
518
519size$(EXEEXT) : size-cfa.runquiet
520
521size-cfa$(EXEEXT):
522        $(BENCH_V_CFA)$(CFACOMPILE) $(srcdir)/size/size.cfa
523
524## =========================================================================================================
525
526RDQBENCHES = \
527        rdq-cycle-cfa \
528        rdq-cycle-tokio \
529        rdq-cycle-go \
530        rdq-cycle-fibre \
531        rdq-yield-cfa \
532        rdq-yield-tokio \
533        rdq-yield-go \
534        rdq-yield-fibre \
535        rdq-locality-cfa \
536        rdq-locality-tokio \
537        rdq-locality-go \
538        rdq-locality-fibre \
539        rdq-transfer-cfa
540
541rdq-benches:
542        +make $(RDQBENCHES)
543
544clean-rdq-benches:
545        rm -rf $(RDQBENCHES)
546
547rdq-%-tokio$(EXEEXT): $(srcdir)/readyQ/%.rs $(srcdir)/bench.rs
548        cd $(builddir) && cargo build --release
549        cp $(builddir)/target/release/$(basename $@) $@
550
551rdq-%-cfa$(EXEEXT): $(srcdir)/readyQ/%.cfa $(srcdir)/readyQ/rq_bench.hfa
552        $(BENCH_V_CFA)$(CFACOMPILE) $< -o $@
553
554go.mod:
555        touch $@
556        go mod edit -module=rdqbench
557        go get golang.org/x/sync/semaphore
558        go get golang.org/x/text/language
559        go get golang.org/x/text/message
560
561rdq-%-go$(EXEEXT): $(srcdir)/readyQ/%.go $(srcdir)/readyQ/bench.go go.mod
562        $(BENCH_V_GOC)go build -o $@ $< $(srcdir)/readyQ/bench.go
563
564rdq-%-fibre$(EXEEXT): $(srcdir)/readyQ/%.cpp
565        $(BENCH_V_CXX)$(CXXCOMPILE) $< -o $@ -lfibre $(AM_CFLAGS)
566
567# ## =========================================================================================================
568
569CLEANFILES = $(RDQBENCHES) go.mod go.sum
570
571clean-local:
572        -rm -rf target
Note: See TracBrowser for help on using the repository browser.