From: Joost Diepenmaat Date: 2005-07-16T12:41:23+09:00 Subject: Re: [QUIZ] Sampling (#39) On Sat, Jul 16, 2005 at 11:51:27AM +0900, James Edward Gray II wrote: > On Jul 15, 2005, at 11:38 AM, jason r tibbetts wrote: > > >James, > > > >What are your machine's specs, just for comparison's sake? I don't > >want to get too discouraged by my 5+ year-old Sun beater > >workstation. :) > > Dual 2.0 Ghx G5. 2 Gigs of RAM. > > >I've also found that the printing of the results (in the form of an > >array) is taking several minutes in and of itself. Since optimizing > >the printout probably isn't the point of the quiz, can anyone > >recommend something faster than arr.each{ | elem | p elem } > > IO is certainty a part of this quiz. The benchmark library is your > friend... ;) One of the interesting findings for me was that puts array_of_strings is *very* much faster than puts array_of_integers Joost.