Test name | Executions per second |
---|---|
floor | 3235536.5 Ops/sec |
~~ | 5156283.5 Ops/sec |
>> 0 | 5147545.5 Ops/sec |
| 0 | 5136597.5 Ops/sec |
<< 0 | 5178273.0 Ops/sec |
& 0xFFFFFFFFFFFF | 5058300.5 Ops/sec |
^ 0x000000000000 | 5149367.0 Ops/sec |
Math.trunc() | 3265526.2 Ops/sec |
x - (x % 1) | 3748596.2 Ops/sec |
parseInt() | 3192660.5 Ops/sec |