Math.pow vs manual square

Benchmark created by Mourner on


Preparation HTML

<script>
 var k = 1234,
     pow = Math.pow;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Math.pow
pow(k, 2);
ready
Manual
k * k;
ready

Revisions

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

  • Revision 1: published by Mourner on