I am not sure of the name, but in Python I remember seeing how people test the performance of a given method in a module.
In console, they just call them method, tell it how many times to run it, and it keeps track of runtime etc.
does ruby have anything simliar?
There is one called Ruby benchmark: