Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.0 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.0
Mobile
one year ago
Test name Executions per second
for of: few items 12102110.0 Ops/sec
for of: many items 432099.5 Ops/sec
convert to array: few items 3604906.2 Ops/sec
convert to array: many items 89555.4 Ops/sec
native iterator: few items 9412108.0 Ops/sec
native iterator: many items 91722.2 Ops/sec
native iterator w/ size: few items 6005148.5 Ops/sec
native iterator w/ size: many items: 396014.6 Ops/sec
Script Preparation code:
Tests:
  • for of: few items

  • for of: many items

  • convert to array: few items

  • convert to array: many items

  • native iterator: few items

  • native iterator: many items

  • native iterator w/ size: few items

  • native iterator w/ size: many items: