forked from simoneguidi94/gopapageno
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTaskfile.yml
43 lines (37 loc) · 1.15 KB
/
Taskfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
version: '3'
vars:
EXAMPLE: adder
STRAT: opp
FNAME: 'default'
COUNT: 10
tasks:
generate:
cmds:
- go run ./cmd/gopapageno/main.go -l ./examples/{{ .EXAMPLE }}/{{ .STRAT }}/{{ .EXAMPLE }}.l -g ./examples/{{ .EXAMPLE }}/{{ .STRAT }}/{{ .EXAMPLE }}.g -o ./examples/{{ .EXAMPLE }}/{{ .STRAT }}/ -s {{ .STRAT }} -log
ignore_error: true
generate-all-example:
cmds:
- for: [opp, aopp, copp]
task: generate
ignore_error: true
vars:
STRAT: '{{ .ITEM }}'
EXAMPLE: '{{ .EXAMPLE }}'
generate-all:
cmds:
- for: [adder, expr, json, xml]
task: generate-all-example
ignore_error: true
vars:
EXAMPLE: '{{ .ITEM }}'
benchmark:
cmds:
- go test github.com/giornetta/gopapageno/examples/{{ .EXAMPLE }}/{{ .STRAT }} -bench=. -count={{ .COUNT }} -benchmem -timeout 2h -run=^$ > ./examples/{{ .EXAMPLE }}/benchmark_results/{{ .STRAT }}-{{ .FNAME }}.txt
benchmark-all:
cmds:
- task: benchmark
vars: { STRAT: 'opp'}
- task: benchmark
vars: { STRAT: 'aopp' }
- task: benchmark
vars: { STRAT: 'copp' }