Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
rand test
(version: 0)
Comparing performance of:
bitwise trunc vs no trunc
Created:
3 years ago
by:
Guest
Jump to the latest result
Script Preparation code:
var x = Math.random() * 0xFFFFFF; var y;
Tests:
bitwise trunc
var y = x >> 0; var y = (y >> 0x10)+','+(y >> 0x08 & 0xFF)+','+(y & 0xFF);
no trunc
var y = (y >> 0x10)+','+(y >> 0x08 & 0xFF)+','+(y & 0xFF);
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
bitwise trunc
no trunc
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!
Related benchmarks:
Math.floor vs bitwise <<
ceil vs code
ceil vs code bis
Comparing performance of Math.floor(x); vs Math.round(x); vs (0.5 + x) << 0;
hui's test case for round
Comments
Confirm delete:
Do you really want to delete benchmark?