-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevalSys.sh
More file actions
executable file
·25 lines (22 loc) · 810 Bytes
/
evalSys.sh
File metadata and controls
executable file
·25 lines (22 loc) · 810 Bytes
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
#!/bin/bash
#Hayden Coffey
#Used to collect system performance metrics for different query modes
function exitScript {
echo "Run failed!"
echo "File: ${1}"
echo "Mode: ${2}"
exit
}
if [ "$#" != 1 ]; then
echo "Need to specify path to dir with qasm files."
exit
fi
log=$(date +"%Y-%m-%d_%H-%M-%S").log
n=10
for i in `find . -type f -wholename "${1}*.qasm"`; do
[ -f "$i" ] || break
/bin/time --verbose python ./src/Est.py $i simulation --n ${n} 2>> ${log} || exitScript ${i} 'simulation'
/bin/time --verbose python ./src/Est.py $i p1 --n ${n} 2>> ${log} || exitScript ${i} 'p1'
/bin/time --verbose python ./src/Est.py $i p2 --n ${n} 2>> ${log} || exitScript ${i} 'p2'
/bin/time --verbose python ./src/Est.py $i esp --n ${n} 2>> ${log} || exitScript ${i} 'esp'
done