Test name | Executions per second |
---|---|
floor | 3462465.5 Ops/sec |
~~ | 5924475.5 Ops/sec |
>> 0 | 6064275.5 Ops/sec |
| 0 | 6215178.5 Ops/sec |
<< 0 | 6333453.5 Ops/sec |
& 0xFFFFFFFFFFFF | 6251923.5 Ops/sec |
^ 0x000000000000 | 5964041.5 Ops/sec |
Math.trunc() | 3520425.0 Ops/sec |
x - (x % 1) | 4140978.2 Ops/sec |
parseInt() | 3441350.5 Ops/sec |