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
Math.sqrt 156.9 Ops/sec
sqrt with Math.pow 163.1 Ops/sec
x**0.5 1258.3 Ops/sec
Script Preparation code:
Tests:
  • Math.sqrt

  • sqrt with Math.pow

  • x**0.5