Test name | Executions per second |
---|---|
floor | 331280800.0 Ops/sec |
~~ | 356400352.0 Ops/sec |
>> 0 | 368920608.0 Ops/sec |
| 0 | 356277920.0 Ops/sec |
<< 0 | 318913024.0 Ops/sec |
& 0xFFFFFFFFFFFF | 363858624.0 Ops/sec |
^ 0x000000000000 | 351538496.0 Ops/sec |
Math.trunc() | 344258048.0 Ops/sec |
x - (x % 1) | 358869600.0 Ops/sec |
parseInt() | 20083034.0 Ops/sec |