Math.random vs bit shift

Benchmark created by Jeff Craig on


Test runner

Ready to run.

Testing in
TestOps/sec
bit-shift
a = 3.14 >> 0
ready
Math.floor
a = Math.floor(3.14)
ready
Bitwise or
a = 0 | 3.14;
ready

Revisions

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

  • Revision 1: published by Jeff Craig on