Analysis

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
For loop
for(let i = 0; i< arr.length ; i++){
    arr[i] = arr[i]+1
}
ready
ForEach loop
arr.forEach((value, index)=>{
    arr[index] = value + 1
})
ready

Revisions

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