Math.log2 vs Math.log(n)/Math.log(2) (v2)

Revision 2 of this benchmark created by Victor Maia on


Setup

var log = Math.log, log2 = Math.log2, ln2 = Math.log(2);

Test runner

Ready to run.

Testing in
TestOps/sec
a
log(5)/log(2)
ready
b
log(5)/ln2
ready
c
log2(5)
ready

Revisions

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

  • Revision 1: published by viclib on
  • Revision 2: published by Victor Maia on