Test name | Executions per second |
---|---|
floor | 5098867.0 Ops/sec |
~~ | 9217525.0 Ops/sec |
>> 0 | 9172824.0 Ops/sec |
| 0 | 9186089.0 Ops/sec |
<< 0 | 9233901.0 Ops/sec |
& 0xFFFFFFFFFFFF | 9470656.0 Ops/sec |
^ 0x000000000000 | 9375147.0 Ops/sec |
Math.trunc() | 5323144.5 Ops/sec |
x - (x % 1) | 5374706.5 Ops/sec |
parseInt() | 5274609.0 Ops/sec |