Skip to content

Commit

Permalink
Disable machine benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinonard committed Aug 9, 2024
1 parent 7ef7081 commit 60b7ed0
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions scripts/run_benchmarks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,16 +138,19 @@ for chain in ${chains//,/ }; do
fi
done

echo "[+] Benchmarking the machine..."
OUTPUT=$(
$BENCHMARK-TOOL benchmark machine --chain=$chain 2>&1
)
if [ $? -ne 0 ]; then
echo "[-] Failed the machine benchmark"
echo "$OUTPUT" >> "$ERR_FILE"
else
echo "$OUTPUT" >> "$output_path/$chain/$chain-machine-bench.txt"
fi
# Disabled for now - command isn't available (yet).
# With latest changes we also benchmark the HW each time the client starts.
#
# echo "[+] Benchmarking the machine..."
# OUTPUT=$(
# $BENCHMARK-TOOL benchmark machine --runtime ./target/release/wbuild/astar-runtime/${chain}_runtime.compact.compressed.wasm 2>&1
# )
# if [ $? -ne 0 ]; then
# echo "[-] Failed the machine benchmark"
# echo "$OUTPUT" >> "$ERR_FILE"
# else
# echo "$OUTPUT" >> "$output_path/$chain/$chain-machine-bench.txt"
# fi

# Check if the error file exists.
if [ -f "$ERR_FILE" ]; then
Expand Down

0 comments on commit 60b7ed0

Please sign in to comment.