Skip to content

Commit b4b4965

Browse files
committed
Don't use --profiling for benchmarks
This leads to incorrect size comparison as it includes function name sizes.
1 parent 3dfe727 commit b4b4965

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

benchmarks/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
"pretty-bytes": "^6.0.0"
1010
},
1111
"scripts": {
12-
"build:swb": "wasm-pack build -t nodejs --profiling --out-dir pkg/serde-wasm-bindgen -- --features serde-wasm-bindgen",
13-
"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",
14-
"build:json": "wasm-pack build -t nodejs --profiling --out-dir pkg/serde-json -- --features serde-json",
15-
"build:msgpack": "wasm-pack build -t nodejs --profiling --out-dir pkg/msgpack -- --features msgpack",
12+
"build:swb": "wasm-pack build -t nodejs --out-dir pkg/serde-wasm-bindgen -- --features serde-wasm-bindgen",
13+
"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",
14+
"build:json": "wasm-pack build -t nodejs --out-dir pkg/serde-json -- --features serde-json",
15+
"build:msgpack": "wasm-pack build -t nodejs --out-dir pkg/msgpack -- --features msgpack",
1616
"build": "npm run build:swb && npm run build:json",
1717
"test": "node index.mjs"
1818
}

0 commit comments

Comments
 (0)