From: Alexey Verkhovsky Date: 2005-01-22T07:22:02+09:00 Subject: Re: disabling method caching Simon Strandgaard wrote: >The average running time usually becomes visible by running it many times.. >over and over.. try with 1000 times.. so that the program spends some seconds >in the code. > > It's sometimes a good idea, when profiling something, to execute it once and _then_ start recording the profiling information. There can be all sorts of lazy instantiation on the first pass, that complicates profiling information unnecessarily, and sometimes may throw you completely off the right track. Either that or run it roughly speaking 100 times longer than _the first_ pass takes to process. Unless you are interested in the startup performance, of course. :) -- Best regards, Alexey Verkhovsky Ruby Forum: http://ruby-forum.org (moderator) RForum: http://rforum.andreas-s.net (co-author) Instiki: http://instiki.org (maintainer)