Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
arr&for
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Edg/127.0.0.0
Browser:
Chrome 127
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
arr
51562.9 Ops/sec
for
134123.8 Ops/sec
Tests:
arr
console.log( new Array(10**3).fill(0).map((_, index) => index + 1).reduce((acc, val) => acc += val) );
for
let acc = 0; for (let i = 1; i <= 10**3; i += 1){ acc += i; } console.log(acc);