Test name | Executions per second |
---|---|
floor | 5644090.5 Ops/sec |
~~ | 8023775.0 Ops/sec |
>> 0 | 8008183.0 Ops/sec |
| 0 | 8009496.5 Ops/sec |
<< 0 | 8006017.5 Ops/sec |
& 0xFFFFFFFFFFFF | 8025707.0 Ops/sec |
^ 0x000000000000 | 8017843.0 Ops/sec |
Math.trunc() | 5645136.0 Ops/sec |
x - (x % 1) | 4819172.5 Ops/sec |
parseInt() | 5674027.5 Ops/sec |