Bitwise rounding (v57)

Revision 57 of this benchmark created by azazdeaz on


Description

Rounding with possible bitwise operation.

Setup

var foo1 = 77.4;
    var foo2 = 352164613641.446333;
    var foo3 = 6;
    var foo4 = null;
    var foo5 = "string";

Test runner

Ready to run.

Testing in
TestOps/sec
OR
foo1 | 0;
foo2 | 0;
foo3 | 0;
foo4 | 0;
foo5 | 0;
ready
Double NOT
~~foo1;
~~foo2;
~~foo3;
~~foo4;
~~foo5;
ready
AND
foo1 & foo1;
foo2 & foo2;
foo3 & foo3;
foo4 & foo4;
foo5 & foo5;
ready
Shift left
foo1 << 0;
foo2 << 0;
foo3 << 0;
foo4 << 0;
foo5 << 0;
ready
Shift right
foo1 >> 0;
foo2 >> 0;
foo3 >> 0;
foo4 >> 0;
foo5 >> 0;
ready
Double NOT
 
ready

Revisions

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