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
8 months ago
Test name Executions per second
split + map + instance 730595.0 Ops/sec
split + forEach + set 352114.4 Ops/sec
for .. in loop 135928.2 Ops/sec
for .. of loop 683483.9 Ops/sec
classical loop 2740227.0 Ops/sec
classical loop 2 10374250.0 Ops/sec
classical loop 3 526598.0 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