-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrun
executable file
·42 lines (34 loc) · 950 Bytes
/
run
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
#!/bin/bash
txt_results="$PWD/parse/results.txt"
csv_results="$PWD/parse/results.csv"
taglist=("3.1.0" "3.1.1" "3.1.2" "3.2.0")
rm -f $txt_results $csv_results
echo "tag,time" >> $csv_results
log() {
echo "$1" 1>&2
}
cd feedjira
for tag in "${taglist[@]}"; do
log "Running at $tag"
log
git checkout -q $tag &> /dev/null
echo $tag "results" >> $txt_results
rm Gemfile.lock &> /dev/null
bundle check || bundle
TAG=$tag bundle exec ruby ../parse/benchmark.rb
done
# git tag | while read tag; do
# [[ $tag =~ $denylist ]] && continue
# log "Running at $tag"
# log
# git checkout -q $tag &> /dev/null
# echo $tag "results" >> $txt_results
# rm Gemfile.lock &> /dev/null
# bundle check || bundle
# TAG=$tag bundle exec ruby ../parse/benchmark.rb >> $txt_results
# done
log "Done running the parse benchmark."
git checkout -q main
cd ../parse
R --vanilla < chart.r
log "Done producing the parse chart."