Test name | Executions per second |
---|---|
floor | 6473427.0 Ops/sec |
~~ | 12416341.0 Ops/sec |
>> 0 | 12399186.0 Ops/sec |
| 0 | 12404889.0 Ops/sec |
<< 0 | 12413152.0 Ops/sec |
& 0xFFFFFFFFFFFF | 12396966.0 Ops/sec |
^ 0x000000000000 | 12419705.0 Ops/sec |
Math.trunc() | 6474904.5 Ops/sec |
x - (x % 1) | 8019679.0 Ops/sec |
parseInt() | 6381908.0 Ops/sec |