XMLã¢ã¸ã¥ã¼ã«ã®å¦çé度
NDO::Weblog Perl 㧠XML ã®å¦çã¯ã©ããéãããã³ã
http://naoya.dyndns.org/~naoya/mt/archives/001209.html
ã«ããã¨ã
以ä¸ã®ï¼ã¤ã®æ¹æ³ãæ¤è¨¼ããçµæ
1. æ£è¦è¡¨ç¾ã§ã¶ã£ãæã
2. XML::Simple ã§ãã¼ã¹ãã¦å¾ããããã¼ã¿æ§é ããåå¾
3. XML::RSS ã§ãã¼ã¹ãã¦åå¾
4. XML::LibXML ã® DOM ã«å¯¾ãã XPath ã¤ã³ã¿ãã§ã¼ã¹ã§åå¾
ãããªã£ãããã§ããâ
[naoya@judy XML-Bench]$ perl rss.pl sample.rdf
Benchmark: timing 1000 iterations of XML::LibXML, XML::RSS, XML::Simple, regexp...
XML::LibXML: 2 wallclock secs ( 1.77 usr + 0.00 sys = 1.77 CPU) @ 564.97/s (n=1000)
XML::RSS: 93 wallclock secs (91.89 usr + 0.06 sys = 91.95 CPU) @ 10.88/s (n=1000)
XML::Simple: 372 wallclock secs (358.27 usr + 0.12 sys = 358.39 CPU) @ 2.79/s (n=1000)
regexp: 0 wallclock secs ( 0.13 usr + 0.00 sys = 0.13 CPU) @ 7692.31/s (n=1000)
(warning: too few iterations for a reliable count)
XML::Simpleãé
ï¼
ä»ãPerlã§Webãµã¼ãã¹ãå¼ãã§ã¿ããã¨XML::Simpleãããããããã£ã¦ããã¨ããã ã£ãã®ã§ããâ¦ã
XML::LibXMLã試ãã¦ã¿ãã»ããããããªã