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 ** 0.5

     
    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 ** 0.5

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 17 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136 on Windows
View result in a separate tab
Test name Executions per second
Math.sqrt 7310.9 Ops/sec
sqrt with ** 0.5 14270.3 Ops/sec