Files
performance-tests/wasm_browser.html

15 lines
311 B
HTML
Raw Permalink Normal View History

2025-11-18 12:55:09 +01:00
<script type="module">
import { setupWebAssembly } from "./shared.js"
async function runWasm() {
const response = await fetch('./binaries/wasm_add.wasm');
const wasmBuffer = await response.arrayBuffer();
setupWebAssembly( wasmBuffer );
}
// Run on page load
runWasm().catch(console.error);
</script>