From f18b9ba50b574919d6c5c7cdffc20cc1b49b1ffb Mon Sep 17 00:00:00 2001 From: Ahmad Kaouk Date: Tue, 28 Oct 2025 15:49:23 +0100 Subject: [PATCH] Use production profile in benchmark script --- operator/scripts/run-benchmarks.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/operator/scripts/run-benchmarks.sh b/operator/scripts/run-benchmarks.sh index 9f5a3c4a..804c19d2 100755 --- a/operator/scripts/run-benchmarks.sh +++ b/operator/scripts/run-benchmarks.sh @@ -53,11 +53,11 @@ if [ ! -f "$TEMPLATE_PATH" ]; then fi # Build the runtime WASM -echo -e "${YELLOW}Building runtime $RUNTIME with features: $FEATURES${NC}" -cargo build --release --features "$FEATURES" -p datahaven-$RUNTIME-runtime +echo -e "${YELLOW}Building runtime $RUNTIME (production profile) with features: $FEATURES${NC}" +cargo build --profile production --features "$FEATURES" -p datahaven-$RUNTIME-runtime # Get the WASM path -WASM_PATH="target/release/wbuild/datahaven-$RUNTIME-runtime/datahaven_${RUNTIME}_runtime.compact.compressed.wasm" +WASM_PATH="target/production/wbuild/datahaven-$RUNTIME-runtime/datahaven_${RUNTIME}_runtime.compact.compressed.wasm" if [ ! -f "$WASM_PATH" ]; then echo -e "${RED}Error: WASM runtime not found at $WASM_PATH${NC}"