Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 14_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/87.0.4280.77 Mobile/15E148 Safari/604.1
Chrome Mobile iOS 87
iOS 14.0
Mobile
3 years ago
Test name Executions per second
Power function (small number) 2510316.0 Ops/sec
Power function (large number) 2526534.0 Ops/sec
Power function (very large number) 2342943.0 Ops/sec
Square root function (small number) 2436405.0 Ops/sec
Square root function (large number) 2476146.0 Ops/sec
Square root function (very large number) 2532136.0 Ops/sec
Script Preparation code:
Tests:
  • Power function (small number)

  • Power function (large number)

  • Power function (very large number)

  • Square root function (small number)

  • Square root function (large number)

  • Square root function (very large number)