Test name | Executions per second |
---|---|
floor | 2353849.0 Ops/sec |
~~ | 4428675.0 Ops/sec |
>> 0 | 4616084.0 Ops/sec |
| 0 | 4449912.5 Ops/sec |
<< 0 | 4493550.5 Ops/sec |
& 0xFFFFFFFFFFFF | 4630880.0 Ops/sec |
^ 0x000000000000 | 4552198.0 Ops/sec |
Math.trunc() | 2386474.2 Ops/sec |
x - (x % 1) | 2925399.0 Ops/sec |
parseInt() | 2442619.2 Ops/sec |