From: Eric Hodel Date: 2004-07-03T08:46:34+09:00 Subject: Re: slow method searching? --yRXsXhSYq7voLSEz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Sean O'Dell (sean@celsoft.com) wrote: > You're timing how long it takes the OS to load the time program, the > Ruby interpreter, Ruby to load your script and then Ruby to run your > code. The OS is adding variance to your final times, probably. The OS does not add 35 seconds of variance. > Try putting all of your tests in a single Ruby script file. Place a > pause or a gets in Ruby code to allow the OS to stop all possible hard > disk activity before commencing the actual tests. Hint: This is similar, possibly related, to ruby-core:2661 --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --yRXsXhSYq7voLSEz Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQFA5fPZMypVHHlsnwQRAuMRAKCdv51p/Xsd1qvYlLCsm/loBpELQACfclFF 6VzE+qd+D4YETDCloHimNbk= =Qdci -----END PGP SIGNATURE----- --yRXsXhSYq7voLSEz--