Run details:
Mozilla/5.0 (Linux; Android 12; M2102J20SI) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4710.6 Mobile Safari/537.36
Chrome Mobile 98
Android
Mobile
3 years ago
Test name Executions per second
x ** 0.5 7018052.0 Ops/sec
Math.pow(x, 0.5) 2034509.1 Ops/sec
Math.sqrt(x) 2025426.1 Ops/sec
Script Preparation code:
Tests:
  • x ** 0.5

  • Math.pow(x, 0.5)

  • Math.sqrt(x)