Math.pow vs Bitwise (v2)

Revision 2 of this benchmark created by gdz on


Preparation HTML

<script>
  var a = 4,
      b = 2,
      c = 0,
      Pow = Math.pow;
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Math.pow
c = Pow(a, b);
ready
Bitwise
c = a << b;
ready

Revisions

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