DOM querying performance: XPath vs CSS selectors A very simple demo, showing the difference in performance of selecting DOM nodes between using document.querySelectorAll() and document.evaluate(). Demo page: https://xpath-vs-css.vercel.app/