Test name | Executions per second |
---|---|
floor | 2570425.5 Ops/sec |
~~ | 4751845.0 Ops/sec |
>> 0 | 4787501.0 Ops/sec |
| 0 | 4751659.0 Ops/sec |
<< 0 | 4794208.0 Ops/sec |
& 0xFFFFFFFFFFFF | 4697551.0 Ops/sec |
^ 0x000000000000 | 4609778.5 Ops/sec |
Math.trunc() | 2523755.0 Ops/sec |
x - (x % 1) | 3036051.8 Ops/sec |
parseInt() | 2553415.5 Ops/sec |