From: ptkwt@... (Phil Tomson) Date: 2004-05-24T15:23:45+09:00 Subject: Re: make faster Richards benchmark In article <6748553f.0405232121.1ec69094@posting.google.com>, Duncan Lissett wrote: >I'd appreciate any suggestions on how to make a faster Ruby >implementation of Richards benchmark. Perhaps there are obvious >problems that can be corrected? > >http://www.lissett.com/ben/bench1.htm Have you tried the profiler on this code? put 'require 'profile' at the top of the code. This seems to be a fairly involved benchmark, so profiling it should help to narrow down which parts of the code to concentrate your optimization efforts on. Check out the "When Trouble Strikes" chapter of the Programming Ruby book (especially 'But it's too slow') online here: http://phrogz.net/programmingruby/ Phil