No question is stupid when asked honestly
I would have to say that I am not 100% sure. In the trivial cases we have been using I would say whichever takes your fancy, which for me would be the ruby only due to less typing
If you have a decent amount of data to run them both on, simply pre-pend the time function prior to call and it will give you results, ie:
Code:
time ruby -F"[- \n]" -ane 'puts $F.uniq.join(" ")' file