Sum

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
For loop
let sum = 0;
for (let i = 0; i < 1000000; ++i) {
    sum += i;
}
console.log(sum); 
ready
unused
console.log(499999500000); 
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.