From b4b4965c6310347f2684a6319869b0ce96bcc604 Mon Sep 17 00:00:00 2001 From: Ingvar Stepanyan Date: Sat, 9 Dec 2023 17:47:58 +0000 Subject: [PATCH] Don't use --profiling for benchmarks This leads to incorrect size comparison as it includes function name sizes. --- benchmarks/package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/package.json b/benchmarks/package.json index eec4882..9b0558d 100644 --- a/benchmarks/package.json +++ b/benchmarks/package.json @@ -9,10 +9,10 @@ "pretty-bytes": "^6.0.0" }, "scripts": { - "build:swb": "wasm-pack build -t nodejs --profiling --out-dir pkg/serde-wasm-bindgen -- --features serde-wasm-bindgen", - "build:swb-reftypes": "cross-env RUSTFLAGS=\"-C target-feature=+reference-types\" WASM_BINDGEN_EXTERNREF=1 wasm-pack build -t nodejs --profiling --out-dir pkg/serde-wasm-bindgen-reftypes -- --features serde-wasm-bindgen", - "build:json": "wasm-pack build -t nodejs --profiling --out-dir pkg/serde-json -- --features serde-json", - "build:msgpack": "wasm-pack build -t nodejs --profiling --out-dir pkg/msgpack -- --features msgpack", + "build:swb": "wasm-pack build -t nodejs --out-dir pkg/serde-wasm-bindgen -- --features serde-wasm-bindgen", + "build:swb-reftypes": "cross-env RUSTFLAGS=\"-C target-feature=+reference-types\" WASM_BINDGEN_EXTERNREF=1 wasm-pack build -t nodejs --out-dir pkg/serde-wasm-bindgen-reftypes -- --features serde-wasm-bindgen", + "build:json": "wasm-pack build -t nodejs --out-dir pkg/serde-json -- --features serde-json", + "build:msgpack": "wasm-pack build -t nodejs --out-dir pkg/msgpack -- --features msgpack", "build": "npm run build:swb && npm run build:json", "test": "node index.mjs" }