-
Notifications
You must be signed in to change notification settings - Fork 0
/
collect_hybrid2
31 lines (26 loc) · 990 Bytes
/
collect_hybrid2
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
START=$(date +%s.%N)
python compile.py tests/P2/project_while.py
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo project_while.py,$DIFF,-2 > speed_collection2.txt
START=$(date +%s.%N)
python compile.py -color-ilp tests/P2/project_while.py
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo project_while.py,$DIFF,-1 >> speed_collection2.txt
START=$(date +%s.%N)
python compile.py -color-ilp -hybrid -balance 25 tests/P2/project_while.py
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo project_while.py,$DIFF,25 >> speed_collection2.txt
START=$(date +%s.%N)
python compile.py -color-ilp -hybrid -balance 50 tests/P2/project_while.py
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo project_while.py,$DIFF,50 >> speed_collection2.txt
START=$(date +%s.%N)
python compile.py -color-ilp -hybrid -balance 75 tests/P2/project_while.py
END=$(date +%s.%N)
DIFF=$(echo "$END - $START" | bc)
echo project_while.py,$DIFF,75 >> speed_collection2.txt