Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Chrome 103
Mac OS X 10.11.6
Desktop
one year ago
Test name Executions per second
For-loop 100 Items 24613.8 Ops/sec
For-of 100 Items 2114819.8 Ops/sec
For-loop 1000 Items 2498.8 Ops/sec
For-of 1000 items 371018.1 Ops/sec
For-loop 1mil items 2.5 Ops/sec
For-of 1mil items 247.9 Ops/sec
HTML Preparation code:
Tests:
  • For-loop 100 Items

  • For-of 100 Items

  • For-loop 1000 Items

  • For-of 1000 items

  • For-loop 1mil items

  • For-of 1mil items