Math.pow vs. simple multiplication (v13)

Revision 13 of this benchmark created on


Description

if you only need the square of something, what will eventually be faster?

Setup

x1 = 6.1234

Test runner

Ready to run.

Testing in
TestOps/sec
Simple Multiplication
x1 * x1
ready
Math.pow
Math.pow(x1, 2);
ready
x1 * 7.1234
x1 * 7.1234
ready

Revisions

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