Skip to content

docs: add current Writr vs writr-rs benchmarks - #552

Merged
jaredwray merged 3 commits into
mainfrom
cursor/readme-writr-rs-benchmarks-ad26
Sep 28, 2026
Merged

jaredwray merged 3 commits into
mainfrom
cursor/readme-writr-rs-benchmarks-ad26

Conversation

@jaredwray

@jaredwray jaredwray commented Sep 27, 2026 •

Copy link
Copy Markdown
Owner

Please check if the PR fulfills these requirements

  • Followed the Contributing and Code of Conduct guidelines.
  • Tests for the changes have been added (for bug fixes/features) with 100% code coverage.

What kind of change does this PR introduce?

Docs update. The root README benchmark section shows a measured head-to-head between the JavaScript engine and writr-rs. Numbers were refreshed after main b4f1b13 (native katex-rs and writr-acorn). The writr-rs README points at that section and keeps the September 16 snapshot as a historical record.

Measured on

  • Commit 3d585ed, which includes main b4f1b13
  • Node.js v22.22.2, Rust 1.94.1 release build (thin LTO)
  • Linux x64 VM, Intel Xeon, 4 logical CPUs
  • pnpm benchmark:native: five fresh processes, caching off, exact HTML checked before timing, renderBatch pinned to two threads

Headline (median)

Workload Writr sync writr-rs sync Speedup writr-rs renderBatch
Markdown, plugins off 3,387 docs/s 15,033 docs/s 4.44× 27,199 docs/s (8.03×)
Markdown, default features 1,098 docs/s 4,894 docs/s 4.46× 8,436 docs/s (7.68×)
MDX fixtures 6,378 docs/s 103,864 docs/s 16.29× 189,540 docs/s (29.72×)
Math 681 docs/s 2,206 docs/s 3.24× 3,521 docs/s (5.17×)

vitest run --coverage passed on this tree (189 tests, 100% line coverage). No new tests: this change is documentation plus a merge of main.

Open in Web Open in Cursor 

Replace the stale README benchmark tables with a measured head-to-head
against writr-rs, and point the Rust readme at that section.

Co-authored-by: Jared Wray <me@jaredwray.com>
@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b4f1b13) to head (be42e97).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #552   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            5         5           
  Lines          515       515           
  Branches       144       144           
=========================================
  Hits           515       515           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray
jaredwray marked this pull request as ready for review September 27, 2026 04:14
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-27T04:16:47.901195Z 2055b4e Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

cursoragent and others added 2 commits September 28, 2026 05:55
Co-authored-by: Jared Wray <me@jaredwray.com>
Re-measure Writr against main b4f1b13. Native KaTeX and the native MDX
parser move math to 3.24× and MDX to 16.29× the JavaScript engine.

Co-authored-by: Jared Wray <me@jaredwray.com>
@jaredwray
jaredwray merged commit f8a6dd5 into main Sep 28, 2026
32 checks passed
@jaredwray
jaredwray deleted the cursor/readme-writr-rs-benchmarks-ad26 branch September 28, 2026 06:24
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