Test name | Executions per second |
---|---|
floor | 2955464.8 Ops/sec |
~~ | 5369183.5 Ops/sec |
>> 0 | 5659117.5 Ops/sec |
| 0 | 5543615.5 Ops/sec |
<< 0 | 5472870.0 Ops/sec |
& 0xFFFFFFFFFFFF | 5423548.0 Ops/sec |
^ 0x000000000000 | 5651210.0 Ops/sec |
Math.trunc() | 1885136.6 Ops/sec |
x - (x % 1) | 3616148.2 Ops/sec |
parseInt() | 3221588.8 Ops/sec |