Skip to content

Commit

Permalink
chore: removed asbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinEberhardt committed Feb 18, 2021
1 parent 6cff989 commit c611831
Show file tree
Hide file tree
Showing 3 changed files with 10,917 additions and 144 deletions.
17 changes: 7 additions & 10 deletions benchmark/benchmark.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,14 @@ const loader = require("@assemblyscript/loader");
const Benchmark = require("benchmark");
const suite = new Benchmark.Suite();

wasmModule = loader.instantiateSync(
fs.readFileSync("./build/release/assemblyscript-regex.wasm"),
{
env: {
log: () => {
const { __getString } = wasmModule.exports;
console.log(__getString(strPtr));
},
wasmModule = loader.instantiateSync(fs.readFileSync("./build/optimized.wasm"), {
env: {
log: () => {
const { __getString } = wasmModule.exports;
console.log(__getString(strPtr));
},
}
);
},
});

// the executeRegExp exported function is ex
function executeRegex(regexStr, valueStr, untilNull = false) {
Expand Down
Loading

0 comments on commit c611831

Please sign in to comment.