Actually, I must say it is the same. That's why you have to know your body reactions first through masturbation. If you do, then you know how to react during actual sex.
Say for example, if you masturbate and reach orgasm after 5 minutes, then there's a possibility that you also reach orgasm after 5 minutes during sex. However, if you know when to stop when you feel like cumming, then you can also do that during sex.
i can masturbate and end it after 5 minutes, and I can have sex end finish it after 5 minutes, even shorter than that. It's what you call "quickie".