-
Notifications
You must be signed in to change notification settings - Fork 19
/
all.sh
executable file
·34 lines (28 loc) · 1.04 KB
/
all.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
#!/bin/bash
run_benchmark () {
echo "--------------------------------------------------"
echo "Start: $1"
echo "--------------------------------------------------"
pushd $2
$3
popd
echo "--------------------------------------------------"
echo "Done: $1"
echo "--------------------------------------------------"
echo ""
echo ""
}
export RUST_LOG=info
TIMESTAMP=$(TZ=GMT date '+%Y-%m-%d_%H%M%S')
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
CSV_PATH="${SCRIPT_DIR}/data/${TIMESTAMP}.csv"
# Print the date and time in GMT
echo "Time stamp: ${TIMESTAMP}"
echo "CSV path: ${CSV_PATH}"
######################################################################
# Team Directory Command
run_benchmark "Polygon Miden" "miden" "cargo run --release -- --out ${CSV_PATH} all"
run_benchmark "RISC Zero" "risczero" "cargo run --release -- --out ${CSV_PATH} all"
# Print the date and time in GMT
echo -n "End time: "
TZ=GMT date +"%Y%m%d%H%M%S"