Test name | Executions per second |
---|---|
floor | 3210191.8 Ops/sec |
~~ | 5618325.5 Ops/sec |
>> 0 | 5636475.0 Ops/sec |
| 0 | 5643876.0 Ops/sec |
<< 0 | 5646532.0 Ops/sec |
& 0xFFFFFFFFFFFF | 5626098.5 Ops/sec |
^ 0x000000000000 | 5589204.0 Ops/sec |
Math.trunc() | 3280309.5 Ops/sec |
x - (x % 1) | 3705066.0 Ops/sec |
parseInt() | 2924251.0 Ops/sec |