Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Lark/7.3.19 LarkLocale/zh_CN ChannelName/Feishu LKBrowserIdentifier/69517845-07D3-403E-8727-4F954B577A51
Mobile Safari 16
iOS 16.6
Mobile
one year ago
Test name Executions per second
for 76289.3 Ops/sec
foreach 227115.5 Ops/sec
for..of 225399.5 Ops/sec
for..of over entries 86196.3 Ops/sec
for..in 81073.9 Ops/sec
for cache length 105864.0 Ops/sec
for reverse 104617.2 Ops/sec
while 105294.5 Ops/sec
Script Preparation code:
Tests:
  • for

  • foreach

  • for..of

  • for..of over entries

  • for..in

  • for cache length

  • for reverse

  • while