forked from h2oai/h2o-2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
createBench.sh
47 lines (37 loc) · 840 Bytes
/
createBench.sh
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
#!/bin/bash
#This script gathers all of the necessary csv files for the html generator to use.
#Arguments: branch_name config_json
#The structure it creates is this:
#Root:
# benchmarks
# *.csv
# Logs
# overall
# *cpuPerf*
# *memPerf*
# ...
# phases
# *phasePCA*
# *phaseKMeans*
# ...
function makeStructure {
if [ -d $1 ]
then
rm -rf $1
fi
root=$1
mkdir -p ${root}/benchmarks
mkdir -p ${root}/Logs
}
h2obuild=`cat latest`
branch=$1
DATE=`date +%Y-%m-%d`
root=${branch}_${h2obuild}
makeStructure ${root}
#move the actual benchmarks to the benchRoot
cp benchmarks/${h2obuild}/${DATE}/*csv ${root}/benchmarks
wait
#gather up machine logs
bash startloggers.sh $2 gather >/dev/null
wait
mv mach* ${root}/Logs