Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 18_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.0 Mobile/15E148 Safari/604.1
Mobile Safari 18
iOS 18.0
Mobile
6 months ago
Test name Executions per second
reduce 770088.9 Ops/sec
for loop 1397289.1 Ops/sec
forEach 346940.4 Ops/sec
Script Preparation code:
Tests:
  • reduce

  • for loop

  • forEach