Test name | Executions per second |
---|---|
floor | 191777152.0 Ops/sec |
~~ | 184234880.0 Ops/sec |
>> 0 | 182086688.0 Ops/sec |
| 0 | 194576960.0 Ops/sec |
<< 0 | 189374000.0 Ops/sec |
& 0xFFFFFFFFFFFF | 180409984.0 Ops/sec |
^ 0x000000000000 | 190283776.0 Ops/sec |
Math.trunc() | 186082240.0 Ops/sec |
x - (x % 1) | 829210368.0 Ops/sec |
parseInt() | 193202960.0 Ops/sec |