Test name | Executions per second |
---|---|
floor | 1145287.9 Ops/sec |
~~ | 2419702.2 Ops/sec |
>> 0 | 2397647.5 Ops/sec |
| 0 | 2411485.8 Ops/sec |
<< 0 | 2422600.0 Ops/sec |
& 0xFFFFFFFFFFFF | 2429060.2 Ops/sec |
^ 0x000000000000 | 2453848.8 Ops/sec |
Math.trunc() | 1298464.8 Ops/sec |
x - (x % 1) | 1491672.6 Ops/sec |
parseInt() | 1231503.8 Ops/sec |