-
Notifications
You must be signed in to change notification settings - Fork 1
/
run_octane.sh
executable file
·31 lines (26 loc) · 755 Bytes
/
run_octane.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
#! /bin/bash
# Include Servo Config Options
source ./config-parser.sh
source ./log.sh
source ./servo-configs.sh
OCTANE_RESULTS="$BENCH_RESULTS/octane-results"
if [ ! -d $OCTANE_RESULTS ]
then
log "Path OCTANE_RESULTS does not exist, creating..."
mkdir $OCTANE_RESULTS
fi
# Run Octane Function
run_octane() {
log "Octane servo-$2 Benchmark Start..."
cd $BASE_PATH$1
./mach test-octane >> octane-mem.json
log "Octane servo-$2 Benchmark Complete"
mv octane-result.json ${OCTANE_RESULTS}/octane_$2.json
mv octane-mem.json ${OCTANE_RESULTS}/octane_$2_mem.json
}
# Test combo
for i in {0..2}; do
if [[ "${SelectedConfigs[i]}" =~ true ]]; then
run_octane "${ServoConfigList[i]}" "${ServoNameList[i]}"
fi
done