The ribosome moves relative to the mRNA by, in effect, pulling itself along it. If both the ribosome and the mRNA are freely floating and not attached to anything else (as in jp89's answerjp89's answer), the relative amount of movement should depend on their relative masses.
(Actually, it also depends on how much drag each of them experiences with respect to the surrounding liquid medium, but since I have no idea how much that is, and since it's probably highly conformation-dependent anyway, I'm going to just ignore that and just assume that the drag is also more or less proportional to mass, at least to first order.)
As it happens, a quick Google search and some back of the envelope calculation suggests that the mass of a ribosome and the average mass of an mRNA are both around a megadalton. Of course, the length (and thus the mass) of an mRNA varies quite a lot, so it would seem likely that sometimes it's the ribosome that moves mostly, sometimes it's the mRNA, and sometimes it's both.
Also, as shigeta and others have pointed out, there can be more than one ribosome attached to the same mRNA strand. That's going to make the mRNA move more (and, correspondingly, the ribosomes move less), since there are more ribosomes pulling it along. Then there's also the protein being transcribed, which is attached to the ribosome but also being moved with respect to it. And I really have no idea how negligible the interactions with the tRNAs and so on are. It's a mess, but my guess would be that, usually, it's mostly the mRNA that moves, but that the ribosomes aren't completely stationary either (unless they're attached to something, of course).
Ps. Here's an exercise for you, which you may try out if you happen to have a friend who works at a public swimming pool. Otherwise consider it a gedankenexperiment. You know those floating ropes that separate the lanes in the pool? Try getting your friend to let you into the pool when it's not in use and to release one of the ropes from the walls. Then get in, grab the rope with your arms and legs and try pulling yourself along it. While doing so, try to decide whether it's you or the rope who moves more. (Also, to more closely approximate the Reynolds numbers involved inside a cell, imagine doing this in treacle instead of water.)