Test name | Executions per second |
---|---|
floor | 4547549.5 Ops/sec |
~~ | 8155643.0 Ops/sec |
>> 0 | 8419854.0 Ops/sec |
| 0 | 8100533.5 Ops/sec |
<< 0 | 8132525.5 Ops/sec |
& 0xFFFFFFFFFFFF | 7980414.0 Ops/sec |
^ 0x000000000000 | 8222330.5 Ops/sec |
Math.trunc() | 4389619.0 Ops/sec |
x - (x % 1) | 5424053.0 Ops/sec |
parseInt() | 4357327.5 Ops/sec |