with 2.077, the PDL shells have a with_time { code... } function to make this sort of measurement easier.
Observation: the first command of the above snippet is slightly quicker than the rest; this may be because the following ones, in assigning to e.g. $y, will trigger the destruction of the previous contents of that variable, which is likely to take some time.