feat: add db benchmark to check perf script
chore: update perf check to use latest benchwizard
@@ -39,7 +39,7 @@ else
exit 1
fi
-EXPECTED_BENCHWIZARD_VERSION="0.4.3"
+EXPECTED_BENCHWIZARD_VERSION="0.5.0"
echo -n "benchwizard >= $EXPECTED_BENCHWIZARD_VERSION ..... "
@@ -81,4 +81,17 @@ echo
# Run the check
# shellcheck disable=SC2086
-$PYTHON -m bench_wizard benchmark -pc $*
+$PYTHON -m bench_wizard pc -p xyk -p exchange -p transaction_multi_payment -rf .maintain/bench-check/hydradx-bench-data.json
+
+echo
+
+# Run DB performance check
+echo "Running DB disk performance"
+if [ ! -d ./substrate ];then
+ echo "Cloning substrate ... "
+ git clone --branch=polkadot-v0.9.12 https://github.com/paritytech/substrate.git ./substrate >/dev/null 2>&1
+fi
+$PYTHON -m bench_wizard db -d ./substrate
+
+echo
+
