Test name | Executions per second |
---|---|
floor | 2873309.2 Ops/sec |
~~ | 5180719.0 Ops/sec |
>> 0 | 5166709.5 Ops/sec |
| 0 | 5191455.0 Ops/sec |
<< 0 | 5269328.0 Ops/sec |
& 0xFFFFFFFFFFFF | 5250112.5 Ops/sec |
^ 0x000000000000 | 5282260.5 Ops/sec |
Math.trunc() | 2910778.2 Ops/sec |
x - (x % 1) | 3657893.5 Ops/sec |
parseInt() | 2854808.8 Ops/sec |