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 729733.5 Ops/sec
split + forEach + set 344953.8 Ops/sec
for .. in loop 131640.1 Ops/sec
for .. of loop 645910.7 Ops/sec
classical loop 2742536.8 Ops/sec
classical loop 2 10137299.0 Ops/sec
for .. in loop 2 105797.2 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


;