Test name | Executions per second |
---|---|
floor | 3572712.5 Ops/sec |
~~ | 6441555.0 Ops/sec |
>> 0 | 6472800.0 Ops/sec |
| 0 | 6414963.5 Ops/sec |
<< 0 | 6464634.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6487629.0 Ops/sec |
^ 0x000000000000 | 6329506.0 Ops/sec |
Math.trunc() | 3566399.2 Ops/sec |
x - (x % 1) | 4334912.5 Ops/sec |
parseInt() | 3510417.5 Ops/sec |