First, I tried Disk Utility but it doesn't work for APFS partitions. Then, I used Carbon Copy Cloner and it works very smoothly and booted from SSD after changing startup disk to it. Just select source and destination partitions and press "clone" and CCC will do the rest. It took about 3 hours to clone 160GB.
... View more