Math.pow vs multiplication

Benchmark created by slyy on


Test runner

Ready to run.

Testing in
TestOps/sec
Math.pow
var a = Math.pow(3, 10);
ready
Multiplication
var a = 3 * 3 * 3 * 3 * 3 * 3 * 3 * 3 * 3 * 3;
ready

Revisions

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