Script Preparation code:
AخA
 
var numbers = Array.from(Array(10000), (_,x) => (Math.random()*x));
Tests:
  • Math.sqrt

     
    numbers.forEach(x => Math.sqrt(x));
  • sqrt with Math.pow

     
    numbers.forEach(x => x ** 0.5);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Math.sqrt
    sqrt with Math.pow

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:126.0) Gecko/20100101 Firefox/126.0
Firefox 126 on Windows
View result in a separate tab
Test name Executions per second
Math.sqrt 16895.1 Ops/sec
sqrt with Math.pow 32537.6 Ops/sec