Test name | Executions per second |
---|---|
floor | 6064020.0 Ops/sec |
~~ | 11236287.0 Ops/sec |
>> 0 | 11203620.0 Ops/sec |
| 0 | 11188480.0 Ops/sec |
<< 0 | 11146734.0 Ops/sec |
& 0xFFFFFFFFFFFF | 11191653.0 Ops/sec |
^ 0x000000000000 | 11096991.0 Ops/sec |
Math.trunc() | 5916360.5 Ops/sec |
x - (x % 1) | 5586738.5 Ops/sec |
parseInt() | 6089293.5 Ops/sec |