Test name | Executions per second |
---|---|
floor | 6373256.0 Ops/sec |
~~ | 12170529.0 Ops/sec |
>> 0 | 12173267.0 Ops/sec |
| 0 | 12180292.0 Ops/sec |
<< 0 | 12162045.0 Ops/sec |
& 0xFFFFFFFFFFFF | 12132419.0 Ops/sec |
^ 0x000000000000 | 12228869.0 Ops/sec |
Math.trunc() | 6421716.5 Ops/sec |
x - (x % 1) | 6483469.0 Ops/sec |
parseInt() | 6401500.0 Ops/sec |