Test name | Executions per second |
---|---|
floor | 2469264.0 Ops/sec |
~~ | 4609534.0 Ops/sec |
>> 0 | 4653237.5 Ops/sec |
| 0 | 4613785.0 Ops/sec |
<< 0 | 4646215.5 Ops/sec |
& 0xFFFFFFFFFFFF | 4649671.0 Ops/sec |
^ 0x000000000000 | 4655547.0 Ops/sec |
Math.trunc() | 2515202.8 Ops/sec |
x - (x % 1) | 3178087.0 Ops/sec |
parseInt() | 2490943.0 Ops/sec |