John Lim from PHP Everywhere posted a benchmark, where he compared parsing the titles of a RSS feed using regex, DOM, XPath and Sax. He came to quite âshockingâ results in that the regex approach was 60
times faster than the DOM approach. While the task was perfect for a regex job (get me the content of everything between
now than regex.. I can live with that ;)
More arguments, opinions and facts about that topic can be read in the comments of that post.