Script Preparation code:
AخA
 
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>

Previous results

Experimental features:

  • Test case name Result
    bitwise trunc
    no trunc

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36
Chrome 110 on Linux
View result in a separate tab
Test name Executions per second
bitwise trunc 17623120.0 Ops/sec
no trunc 1416397952.0 Ops/sec