Test name | Executions per second |
---|---|
floor | 904598.8 Ops/sec |
~~ | 1658717.1 Ops/sec |
>> 0 | 1476527.6 Ops/sec |
| 0 | 1379473.1 Ops/sec |
<< 0 | 1485872.4 Ops/sec |
& 0xFFFFFFFFFFFF | 1098229.1 Ops/sec |
^ 0x000000000000 | 660028.1 Ops/sec |
Math.trunc() | 452088.6 Ops/sec |
x - (x % 1) | 809637.7 Ops/sec |
parseInt() | 568907.2 Ops/sec |