Test name | Executions per second |
---|---|
floor | 7758294.0 Ops/sec |
~~ | 14156924.0 Ops/sec |
>> 0 | 14113777.0 Ops/sec |
| 0 | 14057936.0 Ops/sec |
<< 0 | 14133784.0 Ops/sec |
& 0xFFFFFFFFFFFF | 14147222.0 Ops/sec |
^ 0x000000000000 | 14143588.0 Ops/sec |
Math.trunc() | 7798009.5 Ops/sec |
x - (x % 1) | 6488007.0 Ops/sec |
parseInt() | 7687305.5 Ops/sec |