Math.pow vs Bitwise (v10)

Revision 10 of this benchmark created on


Setup

var a = 4,
          b = 2,
          c = 0,
          Pow = Math.pow;

Test runner

Ready to run.

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

Revisions

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