Test name | Executions per second |
---|---|
floor | 4526756.5 Ops/sec |
~~ | 7980905.0 Ops/sec |
>> 0 | 8003312.5 Ops/sec |
| 0 | 8115380.5 Ops/sec |
<< 0 | 7949837.0 Ops/sec |
& 0xFFFFFFFFFFFF | 8032524.5 Ops/sec |
^ 0x000000000000 | 8006851.0 Ops/sec |
Math.trunc() | 4450178.0 Ops/sec |
x - (x % 1) | 4462020.0 Ops/sec |
parseInt() | 4486364.5 Ops/sec |