Test name | Executions per second |
---|---|
floor | 5414888.5 Ops/sec |
~~ | 10468647.0 Ops/sec |
>> 0 | 10475963.0 Ops/sec |
| 0 | 10475121.0 Ops/sec |
<< 0 | 10471265.0 Ops/sec |
& 0xFFFFFFFFFFFF | 10624242.0 Ops/sec |
^ 0x000000000000 | 10492098.0 Ops/sec |
Math.trunc() | 5439562.0 Ops/sec |
x - (x % 1) | 6556503.5 Ops/sec |
parseInt() | 5328947.0 Ops/sec |