Use production profile in benchmark script

This commit is contained in:
Ahmad Kaouk 2025-10-28 15:49:23 +01:00
parent 82c7156fd2
commit f18b9ba50b
No known key found for this signature in database
GPG key ID: CF4E030983820DA8

View file

@ -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}"