[libxml-devel] updated XML benchmarks

Stephen Bannasch stephen.bannasch at deanbrook.org
Thu Nov 20 00:33:49 EST 2008


At 9:41 PM -0700 11/19/08, Charlie Savage wrote:
><x-flowed UTF-8>Hi Stephan,
>
>>  I've updated my simple ruby xml benchmark which measures the time to
>>  open a 98k XML document and count one type of leaf element (466 entries)
>>  100 times.
>>
>>    https://svn.concord.org/svn/projects/trunk/common/ruby/xml_benchmarks/
>>
>>  The summary is that for this one test using libxml in MRI and
>>  jdom_document_builder (a native Java library) in JRuby take just about
>  > the same time. This is similar to the last time I ran these benchmarks.
>

I updated the svn repo to include nokogiri.

Here are my results for MRI:

                user     system      total        real
rexml      8.290000   0.100000   8.390000 (  9.050795)
hpricot    2.050000   0.040000   2.090000 (  2.270231)
libxml     0.350000   0.020000   0.370000 (  0.415992)
nokogiri   0.340000   0.020000   0.360000 (  0.381423)


More information about the libxml-devel mailing list