Script Preparation code:
AخA
 
window.arr = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99];
Tests:
  • Reduce

     
    arr.reduce((a, b) => a + b, 0)
  • Incrementing For Loop

     
    let sum = 0
    for(let i = 0; i < arr.length; i++)
      sum += arr[i]
  • Decrementing For Loop

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

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Reduce
    Incrementing For Loop
    Decrementing For Loop

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 8 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
Chrome 52 on Mac OS X 10.11.6
View result in a separate tab
Test name Executions per second
Reduce 547437.8 Ops/sec
Incrementing For Loop 23550.0 Ops/sec
Decrementing For Loop 44917.4 Ops/sec