Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
(x ** 0.5) vs Math.sqrt(x) (inverse order)
(version: 1)
Comparing performance of:
Math.sqrt vs sqrt with Math.pow
Created:
one month ago
by:
Guest
Jump to the latest result
Script Preparation code:
var numbers = Array.from(Array(10000), (_,x) => (Math.random()*x));
Tests:
Math.sqrt
numbers.forEach(x => x ** 0.5);
sqrt with Math.pow
numbers.forEach(x => Math.sqrt(x));
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
Math.sqrt
sqrt with Math.pow
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one month ago
)
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:149.0) Gecko/20100101 Firefox/149.0
Browser/OS:
Firefox 149 on Windows
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
Math.sqrt
53550.2 Ops/sec
sqrt with Math.pow
22713.9 Ops/sec
Related benchmarks:
Math.pow(x,0.5) vs Math.sqrt(x)
x**0.5 vs Math.pow(x,0.5) vs Math.sqrt(x)
Math.pow(x,0.5) vs Math.sqrt(x) 12
(x ** 0.5) vs Math.sqrt(x)
Math.pow(x,0.5) vs Math.sqrt(x) vs x**0.5
Math.pow(x,2) vs Math.sqrt(x)
Math.pow(x,0.5) vs Math.sqrt(x) vs **.5
Math.pow(x,0.5) vs Math.sqrt(x) 2
Math.pow(x,0.5) vs Math.sqrt(x) vs ** 0.5
x ** 0.5 vs Math.sqrt(x)
Comments
Confirm delete:
Do you really want to delete benchmark?