This is a quick, updated version of html5-parser’s benchmark script that includes tests for Selectolax and Markupever.
Note that this also includes tests of walking through the whole tree (walk-selectolax and walk-markupever), since the initial parsing result seemed so unbelievably fast in Selectolax. I was worried it was doing some lazy parsing, but it turns out to also be that fast walking the whole tree. Pretty impressive!
From a run in Python 3.14.3 on a MacBook M1 Pro, MacOS Sequoia 15.7.3. This is not a very clean test (lots running in the background), but is still useful for a general gist of behavior.