From: vshepelev@... Date: 2006-10-26T18:31:27+09:00 Subject: Simple method overhead Hi all. I have the method like: class MyCoolClass def initialize @var = [] end #some other methods push values to @var #here is method of interest: def [](idx); @var[idx] end end I have those, a bit confusing, profiling results: Total Self Children Calls Name 0.09 0.05 0.04 66565 MyCoolClass#[] 0.04 0.04 0.00 66565 Array#[] The strange thing is: method MyCoolClass#[] spends so much time inside itself, though ALL it do - only call Array#[]. Is this normal? Maybe, because of so huge calls count, but I can't understand this :( Thanks. V.