Test name | Executions per second |
---|---|
floor | 2944687.0 Ops/sec |
~~ | 5364184.0 Ops/sec |
>> 0 | 5383513.0 Ops/sec |
| 0 | 5410170.5 Ops/sec |
<< 0 | 5422117.0 Ops/sec |
& 0xFFFFFFFFFFFF | 5428022.0 Ops/sec |
^ 0x000000000000 | 5419321.0 Ops/sec |
Math.trunc() | 2961108.0 Ops/sec |
x - (x % 1) | 3682036.0 Ops/sec |
parseInt() | 2967041.8 Ops/sec |