Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.55 Safari/537.36
Chrome 96
Mac OS X 10.15.2
Desktop
3 years ago
Test name Executions per second
forEach (Native) 16617.8 Ops/sec
for (Native) 17005.2 Ops/sec
each (jQuery) 13188.3 Ops/sec
For of (ES6) 16069.2 Ops/sec
HTML Preparation code:
Tests:
  • forEach (Native)

  • for (Native)

  • each (jQuery)

  • For of (ES6)