diff --git a/src/filter.ts b/src/filter.ts index 3055f170..c7a8cfb8 100644 --- a/src/filter.ts +++ b/src/filter.ts @@ -17,8 +17,12 @@ export const filter = { 'rust-game-of-life', // fail only at CI ], proxy: [ - // Regressions: revisit after unit - "external-call", + // TODO: fix these regressions + "basic-new-Instance-module", // TypeError: Cannot read properties of undefined (reading 'forEach') + "basic-new-Instance-compile", // TypeError: Cannot read properties of undefined (reading 'forEach') + "basic-new-Instance-compileStreaming", // TypeError: Cannot read properties of undefined (reading 'forEach') + "external-call", // SyntaxError: Identifier 'wasm' has already been declared + "multiple-worker-different-name", // SyntaxError: Identifier 'MEM_PAGE_SIZE' has already been declared ], online: [ "heatmap", // works fine, but too long so we skip it diff --git a/tests/proxy/basic-instantiate/website/index.html b/tests/proxy/basic-instantiate/website/index.html index 12f62800..65425b4b 100644 --- a/tests/proxy/basic-instantiate/website/index.html +++ b/tests/proxy/basic-instantiate/website/index.html @@ -10,7 +10,15 @@ fetch("add.wasm") .then((response) => response.arrayBuffer()) .then((bytes) => WebAssembly.instantiate(bytes, {})) - .then((result) => console.log(`1 + 2 = ${result.instance.exports.add(1, 2)}`)); + .then((result) => { + const startTime = performance.now(); + console.log(`1 + 2 = ${result.instance.exports.add(1, 2)}`) + const endTime = performance.now(); + const executionTime = endTime - startTime; + const executionTimeElement = document.createElement('p'); + executionTimeElement.textContent = `Execution time: ${executionTime} milliseconds`; + document.body.appendChild(executionTimeElement); + });
+