Run details:
Mozilla/5.0 (X11; CrOS x86_64 14092.77.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.107 Safari/537.36
Chrome 93
Chrome OS 14092.77.0
Desktop
3 years ago
Test name Executions per second
x ** 0.5 3172732.5 Ops/sec
Math.pow(x, 0.5) 989291.2 Ops/sec
Math.sqrt(x) 1015611.0 Ops/sec
Script Preparation code:
Tests:
  • x ** 0.5

  • Math.pow(x, 0.5)

  • Math.sqrt(x)