Skip to content

Commit c611831

Browse files
chore: removed asbuild
1 parent 6cff989 commit c611831

File tree

3 files changed

+10917
-144
lines changed

3 files changed

+10917
-144
lines changed

benchmark/benchmark.js

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ const loader = require("@assemblyscript/loader");
55
const Benchmark = require("benchmark");
66
const suite = new Benchmark.Suite();
77

8-
wasmModule = loader.instantiateSync(
9-
fs.readFileSync("./build/release/assemblyscript-regex.wasm"),
10-
{
11-
env: {
12-
log: () => {
13-
const { __getString } = wasmModule.exports;
14-
console.log(__getString(strPtr));
15-
},
8+
wasmModule = loader.instantiateSync(fs.readFileSync("./build/optimized.wasm"), {
9+
env: {
10+
log: () => {
11+
const { __getString } = wasmModule.exports;
12+
console.log(__getString(strPtr));
1613
},
17-
}
18-
);
14+
},
15+
});
1916

2017
// the executeRegExp exported function is ex
2118
function executeRegex(regexStr, valueStr, untilNull = false) {

0 commit comments

Comments
 (0)