Slim down indexed access as far as currently possible

Interestingly, the same code written as statements is significantly slower. See notes.
This commit is contained in:
dcodeIO
2018-04-23 23:57:15 +02:00
parent de98a19eb8
commit 63aa648ace
16 changed files with 964 additions and 1384 deletions

View File

@ -34,7 +34,7 @@ function test(nbody, steps) {
return process.hrtime(start);
}
var steps = process.argv.length > 2 ? parseInt(process.argv[2], 10) : 10000000;
var steps = process.argv.length > 2 ? parseInt(process.argv[2], 10) : 20000000;
console.log("Warming up ...");
test(nbodyWASM, 100000);