Mario Ruiz wrote:

> So... my question is... how can I know the running time for every single
> method and class?

Run the script you're interested in tracing with -rprofile

ruby -rprofile how_long_does_this_stuff_take.rb

a