Skip to content

docs(readme): the speed figures came from runs bench/results has replaced - #261

Merged
jamesconwaydev merged 2 commits into
mainfrom
readme-bench-run
Nov 29, 2026
Merged

jamesconwaydev merged 2 commits into
mainfrom
readme-bench-run

Conversation

@jamesconwaydev

Copy link
Copy Markdown
Collaborator

Problem

#259 committed a full bench run from 29 November in bench/results/2026-11-29-m2-max/, and parsec.tools moves to it in parsec-html/website#4. The README's How fast section still quotes the 15 and 21 November runs (370 MB/s, 1,731 pages, 933 to 523, selectors 3.2 times), so once #4 merges the README and the site would give different numbers.

Change

Every figure in How fast now comes from the 29 November run:

  • 13 pages: 362 / 242 / 83 MB/s, from pages.json, all real pages.
  • Real world: 1,746 pages, 563 MB, fetched on 29 November, 1,007 to 543 MB/s, from realworld.json and the docs' Real-world page.
  • Selectors: 242.7 to 714.8 ms over all selectors, which is 2.9 times.
  • It says when and where the numbers come from, and links bench/results.

The two claims in the paragraph still hold in this run. Parsec is the fastest of the three on each of the 13 pages, and realworld.json has 0 pages whose element count differs from Parsec's, for both Lexbor and html5ever. "In eight encodings" is dropped, because nothing in this run counts them.

Tests

The figures were checked against the committed JSON on main. Docs only.

…aced

#259 committed a full run from 29 November, and parsec.tools moves to it in website #4. The README still quoted the 15 and 21 November runs, so the two would disagree. Every figure in How fast now comes from bench/results/2026-11-29-m2-max, and the claims it makes still hold there: Parsec is ahead on each of the 13 pages, and the three parsers build the same number of elements on every one of the 1,746 real-world pages.

@foothillsdigital foothillsdigital left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The figures are right, but one link needs to be absolute.

README.md line 195 links [bench/results](bench/results). #258 made every README link absolute because crates.io renders this file for nine crates, and there a relative link resolves against crates.io, not the repository. It's the only relative link in the file at b09453b. https://github.com/parsec-html/parsec/tree/main/bench/results fixes it.

Everything else checks out against bench/results/2026-11-29-m2-max/ on main:

  • 362 / 242 / 83 MB/s ("all real pages"), and 1,007 vs 543 MB/s over 1,746 pages and 563 MB.
  • Selectors: all selectors is 242.7 vs 714.8 ms, so "2.9 times".
  • "Parsec is ahead of both on every page": of the 13 pages' seconds figures, Parsec is the lowest on all 13.
  • "oxc parses the smallest inline scripts on those pages faster": in js.json, oxc beats Parsec on 10 sources, starting with the three smallest (whatwg-full <script> and whatwg-parsing <script> at 162 bytes, and mdn-html <script> at 341). So it still holds.

Dropping "in eight encodings" is right, since nothing in this run counts them.

@jamesconwaydev

Copy link
Copy Markdown
Collaborator Author

Right, fixed in 5cceb04: it's https://github.com/parsec-html/parsec/tree/main/bench/results now, so it resolves on crates.io too.

@foothillsdigital foothillsdigital left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving 5cceb04. The only change since b09453b is that link, now https://github.com/parsec-html/parsec/tree/main/bench/results, which answers 200. The README has no relative links left. The figures I checked against bench/results/2026-11-29-m2-max/ are unchanged.

@jamesconwaydev
jamesconwaydev added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit cb77147 Nov 29, 2026
44 checks passed
@jamesconwaydev
jamesconwaydev deleted the readme-bench-run branch November 29, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants