From: Alex Young Date: 2007-11-15T21:24:33+09:00 Subject: Re: ruby incredibly slow (update 2) Ron Jeffries wrote: > On Thu, 15 Nov 2007 05:43:05 -0500, Eric Hodel > wrote: > >> On Nov 14, 2007, at 19:30 , Ron Jeffries wrote: >>> On Wed, 14 Nov 2007 14:03:36 -0500, Eric Hodel >>> wrote: >>>> $ time ruby -rsocket -e 'p Socket.gethostbyname("127.0.0.1")' >>>> ["localhost", ["test"], 2, "\177\000\000\001"] >>>> >>>> real 0m0.042s >>>> user 0m0.010s >>>> sys 0m0.009s >>> It's a solid 8 seconds on my machine. But ordinary web page access is >>> nothing like that. What is this telling us? >> Do you get the same result for the IP address (last field)? > > I don't understand the question. He's asking if the last element of this: ["localhost", ["test"], 2, "\177\000\000\001"] is the same. This is possibly a long shot, but what's in your RUBYOPT environment variable? -- Alex