From: Ross Bamford Date: 2006-04-13T04:48:12+09:00 Subject: Re: First script seems slow - What's a better way to write t On Thu, 2006-04-13 at 04:24 +0900, Charlotte wrote: > Brian Mitchell wrote: > > > I get something like this on 1.8 cvs: > > > > user system total real > > foo 4.920000 0.080000 5.000000 ( 5.581873) > > bar 4.610000 0.060000 4.670000 ( 5.457461) > > qux 15.280000 0.280000 15.560000 ( 17.514639) > > Just for fun, I tried it too... I get > > > user system total real > >foo 5.141000 0.000000 5.141000 ( 5.157000) > >bar 4.765000 0.032000 4.797000 ( 4.812000) > >qux 22.219000 1.593000 23.812000 ( 23.906000) > > Hmm... I know for a fact that my (work) computer is messed up, but still > - it's 3.0Ghz HT P4 with 1Gb RAM. Running Windows XP, as much disabled > as I can to try and convince the thing to run quickly. Wow, on my paltry 1.7Ghz P4 I get: user system total real foo 3.990000 0.040000 4.030000 ( 4.097883) bar 3.700000 0.020000 3.720000 ( 3.778370) qux 13.640000 0.130000 13.770000 ( 13.914830) from ruby 1.8.4 (2005-12-24) [i686-linux]. Interestingly (though probably of no concern given developmental status), performance was significantly worse with 1.9 (especially for qux - around 23 seconds) and Oniguruma. -- Ross Bamford - rosco@roscopeco.REMOVE.co.uk