Script Preparation code:
AخA
 
var array = [];
for (let i = 0 ; i < 10000 ; i++) {
    array.push (Math.random () * 100);
}
Tests:
  • ordered

     
    let sum = 0;
    for (let i = 0 ; i < array.length ; i++)
        sum += array[i];
  • reversed

     
    let sum = 0;
    for (let i =  array.length - 1 ; i >= 0 ; i--)
        sum += array[i];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    ordered
    reversed

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130 on Windows
View result in a separate tab
Test name Executions per second
ordered 815.5 Ops/sec
reversed 1632.9 Ops/sec