Skip to content

Commit

Permalink
Merge pull request #1 from danleh/main
Browse files Browse the repository at this point in the history
Reduce code duplication in Wasm runner
  • Loading branch information
kmiller68 authored Nov 13, 2024
2 parents d8cbaab + e00cb16 commit 64c9041
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions wasm-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,18 @@
* THE POSSIBILITY OF SUCH DAMAGE.
*/

const isInBrowser = false;
console = {
log: () => { }
}
testList = [
"HashSet-wasm",
"tsf-wasm",
"quicksort-wasm",
"gcc-loops-wasm",
"richards-wasm",
"tfjs-wasm",
"tfjs-wasm-simd",
"argon2-wasm",
"argon2-wasm-simd",
"8bitbench-wasm",
];

testList = ["HashSet-wasm", "tsf-wasm", "quicksort-wasm", "gcc-loops-wasm", "richards-wasm", "tfjs-wasm", "argon2-wasm", "argon2-wasm-simd"];

RAMification = false;

load("./JetStreamDriver.js");

async function runJetStream() {
try {
await JetStream.initialize();
JetStream.start();
} catch (e) {
throw e;
}
}
runJetStream();
// Re-use the full CLI runner, just with the subset of Wasm line items above.
load("./cli.js");

0 comments on commit 64c9041

Please sign in to comment.