Test name | Executions per second |
---|---|
floor | 3294628.8 Ops/sec |
~~ | 6113546.0 Ops/sec |
>> 0 | 6226006.5 Ops/sec |
| 0 | 6153804.5 Ops/sec |
<< 0 | 6264152.0 Ops/sec |
& 0xFFFFFFFFFFFF | 6232569.5 Ops/sec |
^ 0x000000000000 | 6225413.0 Ops/sec |
Math.trunc() | 3392058.2 Ops/sec |
x - (x % 1) | 4164891.5 Ops/sec |
parseInt() | 3378701.0 Ops/sec |