From: Victor Shepelev Date: 2006-05-24T16:06:02+09:00 Subject: Re: How use Profiling, a Quick Guide. From: John Carter [mailto:john.carter@tait.co.nz] Sent: Wednesday, May 24, 2006 1:10 AM > On Tue, 23 May 2006, Mark Somerville wrote: > > Can anyone recommend some good or tutorials on profiling and > benchmarking? > > Although I have used them both (from the standard library), I feel I > lack > > fundamental knowledge about how to go about it. > > I don't know of any Good one but here are some things I do... Outstanding point! Some things that are worth mentioning: 1. Unfortuantely, Windows users have lack of Unix power tools, which are always helpful for analysys. But some of them can be found at http://gnuwin32.sourceforge.net/ 2. > * Look at the top most items in the profile list. Usually they are > standard library functions. Silly things like [] or +... > Ask your self, "What could be calling these thing so often? > Can I make it do it less often? eg. Cache the result etc.) Here can help my Module#add_tracer, described here http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/192291 Victor.