Script Preparation code:
Tests:
  • Math.trunc

  • Math.floor

  • ~~

  • &-1

  • |0

  • ^0

  • >>0

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Math.trunc
    Math.floor
    ~~
    &-1
    |0
    ^0
    >>0

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119 on Windows
View result in a separate tab
Test name Executions per second
Math.trunc 3336284.8 Ops/sec
Math.floor 2878060.8 Ops/sec
~~ 4637446.0 Ops/sec
&-1 4938558.5 Ops/sec
|0 5080067.0 Ops/sec
^0 5065015.5 Ops/sec
>>0 4975457.0 Ops/sec


;