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
7 months ago
Test name Executions per second
split + map + instance 1420136.1 Ops/sec
for .. in loop 585.0 Ops/sec
for .. of loop 1021595.7 Ops/sec
classical loop 619.7 Ops/sec
classical loop 2 53132.0 Ops/sec
for .. in loop 2 42727.0 Ops/sec
split+forEach 64261.0 Ops/sec
for .. in loop 3 43671.7 Ops/sec
for .. of loop 2 78690.4 Ops/sec
from 268452.6 Ops/sec
from + split 268528.5 Ops/sec
TextEncoder 413887.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