From: Sam Roberts Date: 2006-05-26T15:07:09+09:00 Subject: Re: YARV speed test: XML processing Quoting daniels@pronto.com.au, on Fri, May 26, 2006 at 08:59:38AM +0900: > > I have a small (200 lines) program that processes XML files and > > creates ruby object trees. It uses the native Ruby xml library REXML > > a great deal. > > > > On my MacOS X 2GHz macintel system using the latest YARV speed up my > > code by a factor of 2. > > > > ruby 1.8.4 (2005-12-24) [i686-darwin8.6.1] > > 53 seconds > > > > ruby 2.0.0 (Base: Ruby 1.9.0 2006-04-08) [i686-darwin8.6.1] > > YARVCore 0.4.0 Rev: 502 (2006-05-18) [opts: ] > > 28 seconds > > I've never looked at yarv's internals, but I'm guessing that it creates > ruby objects directly as it processes the stream. I think that you are mistaking yarv for an XML parser. Its not. Its a virtual machine for ruby code. Do a quick google. The benchmarks are on the same code, same rexml, same xml processing technique, same numbers of objects created. Cheers, Sam