Test name | Executions per second |
---|---|
floor | 7304793.5 Ops/sec |
~~ | 13333035.0 Ops/sec |
>> 0 | 13348075.0 Ops/sec |
| 0 | 13339498.0 Ops/sec |
<< 0 | 13312594.0 Ops/sec |
& 0xFFFFFFFFFFFF | 13385266.0 Ops/sec |
^ 0x000000000000 | 13393850.0 Ops/sec |
Math.trunc() | 7315242.0 Ops/sec |
x - (x % 1) | 6359899.5 Ops/sec |
parseInt() | 7381591.0 Ops/sec |