Skip to content

Commit

Permalink
add failing pass-big-number test
Browse files Browse the repository at this point in the history
  • Loading branch information
doehyunbaek committed Aug 26, 2024
1 parent 65afdbb commit 02bb17f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
Binary file removed tests/core/circular-call/index.wasm
Binary file not shown.
33 changes: 33 additions & 0 deletions tests/core/pass-big-number/website/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!doctype html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>WebAssembly Test</title>
</head>

<body>
<script>
(async function () {
const startTime = performance.now();
let instance;
let imports = {
env: {
},
};
const indexResponse = await fetch("index.wasm");
const indexBinary = await indexResponse.arrayBuffer();
let wasm = await WebAssembly.instantiate(indexBinary, imports);
instance = wasm.instance;
instance.exports.figma_5307(9223372036854775808n, 9223372036854775807n);
const endTime = performance.now();
const executionTime = endTime - startTime;
const executionTimeElement = document.createElement('p');
executionTimeElement.textContent = `Execution time: ${executionTime} milliseconds`;
document.body.appendChild(executionTimeElement);
})();
</script>
</body>

</html>
Binary file added tests/core/pass-big-number/website/index.wasm
Binary file not shown.

0 comments on commit 02bb17f

Please sign in to comment.