Test name | Executions per second |
---|---|
floor | 128456024.0 Ops/sec |
~~ | 187650656.0 Ops/sec |
>> 0 | 150660960.0 Ops/sec |
| 0 | 136426560.0 Ops/sec |
<< 0 | 151453232.0 Ops/sec |
& 0xFFFFFFFFFFFF | 150466336.0 Ops/sec |
^ 0x000000000000 | 155025056.0 Ops/sec |
Math.trunc() | 151825232.0 Ops/sec |
x - (x % 1) | 950543168.0 Ops/sec |
parseInt() | 153602896.0 Ops/sec |