Run details:
Mozilla/5.0 (Linux; Android 10; Mi 9T) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.81 Mobile Safari/537.36
Chrome Mobile 85
Android
Mobile
4 years ago
Test name Executions per second
Number 1: use for iterator 62805.6 Ops/sec
Number 2: using reduce method 1151504.4 Ops/sec
Script Preparation code:
Tests:
  • Number 1: use for iterator

  • Number 2: using reduce method