Would anyone enlighten me some comprehensive performance comparison between XPath and DOM in different scenarios? I\'ve read some questions in SO like xPath vs DOM API, whic
This page has a section where you can run tests to compare the two and see the results in different browsers. For instance, for Chrome, xpath is 100% slower than getElementById.
See getElementById vs QuerySelector for more information.