Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ukyo committed May 30, 2017
1 parent 7b4993f commit 05463f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmarks/n-body/n-body.js
Expand Up @@ -116,4 +116,5 @@ for (var i = 0; i < n; i++) {
nbodies.advance(0.01);
}
console.log(nbodies.energy().toFixed(9));
console.log("[js]: ", performance.now() - start);
var node = document.createTextNode(`[js]: ${performance.now() - start}\n`);
result.appendChild(node);
3 changes: 2 additions & 1 deletion benchmarks/n-body/script.js
Expand Up @@ -8,5 +8,6 @@ fetch("./n-body.wasm")
.then(({module, instance}) => {
var start = performance.now();
instance.exports.main();
console.log("[wasm]: ", performance.now() - start);
var node = document.createTextNode(`[wasm]: ${performance.now() - start}\n`);
result.appendChild(node);
});

0 comments on commit 05463f2

Please sign in to comment.