Skip to content

Commit 01ce53f

Browse files
chore: ensure benchmark uses release build
1 parent 741b956 commit 01ce53f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
node-version: 15
1717
- run: npm ci
18-
- run: npm run asbuild:untouched
18+
- run: npm run asbuild
1919
# Run benchmark with `go test -bench` and stores the output to a file
2020
- name: Run benchmark
2121
run: npm run benchmark | tee benchmark/output.txt

benchmark/benchmark.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const Benchmark = require("benchmark");
66
const suite = new Benchmark.Suite();
77

88
wasmModule = loader.instantiateSync(
9-
fs.readFileSync("./build/debug/assemblyscript-regex.wasm"),
9+
fs.readFileSync("./build/release/assemblyscript-regex.wasm"),
1010
{
1111
env: {
1212
log: () => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"prettier:write": "prettier --write .",
1313
"eslint:write": "npm run eslint -- --fix ",
1414
"asbuild:untouched": "asb --target debug",
15-
"asbuild:optimized": "asb",
15+
"asbuild:optimized": "asb --exportRuntime",
1616
"asbuild": "npm run asbuild:untouched && npm run asbuild:optimized",
1717
"tsrun": "ts-node ts/index.ts",
1818
"benchmark": "node benchmark/benchmark.js",

0 commit comments

Comments
 (0)