Of course the cashier will always be faster, they are familiar with the interface, know where most of the barcodes are and have the codes of most non-barcoded items memorized.
But self-checkout could be much faster by removing some anti-features (from the customer POV). I have seen a couple of stores with a better solution where you pick up a scanner at the start and scan your items as you go. This has the advantage of parallelizing most of the process instead of clogging up on big expensive machines. In fact with the ability to check out on that device you could probably get by with just a "Customer Service" desk for when something goes wrong.