Test name | Executions per second |
---|---|
floor | 8097175.0 Ops/sec |
~~ | 15958736.0 Ops/sec |
>> 0 | 15806087.0 Ops/sec |
| 0 | 15678775.0 Ops/sec |
<< 0 | 15767906.0 Ops/sec |
& 0xFFFFFFFFFFFF | 15736168.0 Ops/sec |
^ 0x000000000000 | 15687294.0 Ops/sec |
Math.trunc() | 8092287.5 Ops/sec |
x - (x % 1) | 7317611.5 Ops/sec |
parseInt() | 8101519.0 Ops/sec |