Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36
Chrome 130
Mac OS X 10.15.7
Desktop
29 days ago
Test name Executions per second
Reduce with empty erray 10601.3 Ops/sec
Reduce with filled array 5860.2 Ops/sec
Reduce with filled array with null 6316.3 Ops/sec
Reduce with new Array 5628.4 Ops/sec
Reduce with var 21483.9 Ops/sec
Reduce with var [] 14137.6 Ops/sec
Reduce with var [] assign by index 3608.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Reduce with empty erray

  • Reduce with filled array

  • Reduce with filled array with null

  • Reduce with new Array

  • Reduce with var

  • Reduce with var []

  • Reduce with var [] assign by index