Test name | Executions per second |
---|---|
floor | 3138324.0 Ops/sec |
~~ | 6272790.5 Ops/sec |
>> 0 | 6410319.0 Ops/sec |
| 0 | 6350266.5 Ops/sec |
<< 0 | 6504432.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6514295.5 Ops/sec |
^ 0x000000000000 | 6442862.0 Ops/sec |
Math.trunc() | 3318540.5 Ops/sec |
x - (x % 1) | 4133716.8 Ops/sec |
parseInt() | 3320962.5 Ops/sec |