Math.sqrt(x) vs Math.pow(x,1/2) (v6)

Revision 6 of this benchmark created on


Setup

x = 16
    y = 20

Test runner

Ready to run.

Testing in
TestOps/sec
Math.sqrt
xsqrt = Math.sqrt(x)
ysqrt = Math.sqrt(y)
ready
Math.pow
xsqrt = Math.pow(x, .5)
ysqrt = Math.pow(y, .5)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.