Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Math.floor vs bitwise |
(version: 1)
Math.floor vs bitwise OR
Comparing performance of:
Math.floor vs Bitwise vs unsigned right shift
Created:
10 months ago
by:
Guest
Jump to the latest result
Tests:
Math.floor
var x = window.crypto.getRandomValues(new Uint16Array(1))[0] / 65536 * 13000; x = Math.floor(x);
Bitwise
var x = window.crypto.getRandomValues(new Uint16Array(1))[0] / 65536 * 13000; x = x | 0;
unsigned right shift
var x = window.crypto.getRandomValues(new Uint16Array(1))[0] / 65536 * 13000; x = x >>> 0;
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (3)
Previous results
Fork
Test case name
Result
Math.floor
Bitwise
unsigned right shift
Fastest:
N/A
Slowest:
N/A
Latest run results:
No previous run results
This benchmark does not have any results yet. Be the first one
to run it!
Comments
Confirm delete:
Do you really want to delete benchmark?