Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 13_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 [LinkedInApp]
Mobile Safari 13
iOS 13.6.1
Mobile
4 years ago
Test name Executions per second
Number 1: use for iterator 160121.8 Ops/sec
Number 2: using reduce method 2695882.0 Ops/sec
Script Preparation code:
Tests:
  • Number 1: use for iterator

  • Number 2: using reduce method