-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.bash
51 lines (42 loc) · 1.45 KB
/
run.bash
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
44
45
46
47
48
49
50
51
#!/usr/bin/env bash
# benchmark params
app=benchmark
seqssize=10
seqtype='ROW'
seqminsize=3
seqmaxsize=10
blocksize=1000
zipfn=1000
nops=10000
# cache params
cachesize='1000'
fname=stats-all-$app-$(date +%s).csv
header="seqssize,seqtype,seqminsize,seqmaxsize,blocksize,zipfn,zipfe,nops"
printheader=true
function execute {
java -Xmx10g -cp lib/*:../cache-mining/lib/*:resources/:out/:spmf/spmf.jar:. -Denabled=$enabled -Dcache-size=$cachesize -Dheuristic=$heuristic pt.inescid.gsd.ssb.Benchmark $seqssize $seqtype $seqminsize $seqmaxsize $blocksize $zipfn $zipfe $nops true
benchmarkfname=$(ls stats-benchmark-* | tail -n 1)
cachefname=$(ls stats-cache-* | tail -n 1)
cfg="$seqssize,$seqtype,$seqminsize,$seqmaxsize,$blocksize,$zipfn,$zipfe,$nops"
scala -cp out Merge $header $printheader $cfg $benchmarkfname $cachefname >> $fname
if $printheader ; then
printheader=false
fi
}
for enabled in 'false' 'true'; do
for zipfe in 0.5 1.0 1.5 2.0 2.5 3; do
if $enabled ; then
for heuristic in 'fetch-all' 'fetch-top-n' 'fetch-progressively'; do
# for cachesize in 2000 4000 8000 16000 32000 64000 128000 256000; do
# for cachesize in 30 60 120 240 480 960 1920 3840; do
# for cachesize in 1500; do
echo "Executing... (enabled: true, zipfe: $zipfe, heuristic: $heuristic)"
execute
done
else
echo "Executing... (enabled: false, zipfe: $zipfe)"
heuristic=''
execute
fi
done
done