Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126
Mac OS X 10.15
Desktop
6 months ago
Test name Executions per second
split + map + instance 737286.2 Ops/sec
split + forEach + set 346166.4 Ops/sec
for .. in loop 135217.8 Ops/sec
for .. of loop 129695.7 Ops/sec
classical loop 2649564.5 Ops/sec
Script Preparation code:
Tests:
  • split + map + instance

  • for .. in 1

  • for .. in 2

  • classical loop

  • classical loop 2

  • for .. in loop 2

  • split+forEach

  • for .. in loop 3

  • for .. of loop 2

  • from

  • from + split

  • TextEncoder


;