Test name | Executions per second |
---|---|
floor | 4711858.0 Ops/sec |
~~ | 8291680.0 Ops/sec |
>> 0 | 8296987.0 Ops/sec |
| 0 | 8351748.0 Ops/sec |
<< 0 | 8365547.5 Ops/sec |
& 0xFFFFFFFFFFFF | 8315588.5 Ops/sec |
^ 0x000000000000 | 8339199.0 Ops/sec |
Math.trunc() | 4687627.0 Ops/sec |
x - (x % 1) | 5421730.5 Ops/sec |
parseInt() | 4479253.5 Ops/sec |