Re: [xml] libxml2 performance



Nix N. Nix writes:

Meanwhile, I would like to know if anybody here knows of instances when
libxml was asked to parse a file that's approximately, say, 45MB, and
how long it took to parse it. I just need to know if libxml performs
significantly better than 39s/23MB of text.

I doubt that this is of much value but I can parse ~ 46 MB in ~ 7 seconds
here.

(720) xmllint --noout --stream x.rtf.xml 
7.000u 0.100s 0:11.15 63.6%     0+0k 0+0io 270pf+0w
(721) xmllint --timing --noout --stream x.rtf.xml
Parsing took 7008 ms
6.970u 0.040s 0:07.01 100.0%    0+0k 0+0io 276pf+0w

The first parse is slower since it includes disc io.
The data is converted rtf so it contains a lot of tags...

The system is a Intel(R) Pentium(R) 4 CPU 2.40GHz running linux (2.4.21 SMP).

xmllint --version
xmllint: using libxml version 20613
   compiled with: DTDValid FTP HTTP HTML C14N Catalog XPath XPointer XInclude Iconv Unicode Regexps Automata 
Schemas 

Morus



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]