Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0
Chrome 126
Mac OS X 10.15.7
Desktop
6 months ago
Test name Executions per second
split + map + instance 1405776.9 Ops/sec
split + forEach + set 569842.1 Ops/sec
for .. in loop 117413.4 Ops/sec
for .. of loop 1018264.8 Ops/sec
classical loop 163111.1 Ops/sec
classical loop 2 172317.3 Ops/sec
classical loop 3 137576.4 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


;