Test name | Executions per second |
---|---|
floor | 7029204.0 Ops/sec |
~~ | 12715541.0 Ops/sec |
>> 0 | 12739306.0 Ops/sec |
| 0 | 12682690.0 Ops/sec |
<< 0 | 12725450.0 Ops/sec |
& 0xFFFFFFFFFFFF | 12621707.0 Ops/sec |
^ 0x000000000000 | 12736425.0 Ops/sec |
Math.trunc() | 7037770.0 Ops/sec |
x - (x % 1) | 6595497.0 Ops/sec |
parseInt() | 7099832.0 Ops/sec |