Weavon and Carta, compared head to head
Weavon 0.2.0 is faster than Carta 0.0.16 on 9 of 11 workloads, uses lower peak memory on all 11, and matches Pandoc 3.13 bytes in all 11 cases compared with 4 for default Carta.
Eleven workloads on Apple Silicon ARM64
- 9 of 11Workloads where Weavon beats Carta on median time
- 11 of 11Workloads where Weavon uses lower peak RSS
- 11 vs 4Byte-equal cases against Pandoc 3.13 by default
- 9.26 vs 16.37 MBSelf-contained binary vs Carta plus syntax folder
| Workload | Weavon 0.2.0 | Carta 0.0.16 | Weavon RSS | Carta RSS | Pandoc parity |
|---|---|---|---|---|---|
| CommonMark to JSON | 28.51 ms | 50.32 ms | 27.1 MiB | 49.4 MiB | Both exact |
| HTML to JSON | 19.53 ms | 25.17 ms | 20.0 MiB | 39.6 MiB | Weavon exact, Carta duplicates classes |
| JSON to JSON | 7.87 ms | 9.71 ms | 9.3 MiB | 11.2 MiB | Both exact |
| JSON to HTML | 13.95 ms | 10.93 ms | 11.1 MiB | 12.0 MiB | Weavon exact, Carta skips MathML |
| JSON to HTML, no highlight | 9.52 ms | 10.79 ms | 10.2 MiB | 11.6 MiB | Weavon exact, Carta skips MathML |
| JSON to LaTeX | 14.41 ms | 13.21 ms | 10.7 MiB | 12.5 MiB | Both exact |
| JSON to LaTeX, no highlight | 9.89 ms | 14.20 ms | 9.9 MiB | 12.2 MiB | Both exact |
| Markdown to HTML | 62.61 ms | 62.97 ms | 29.3 MiB | 51.1 MiB | Weavon exact, Carta footnote link differs |
| Markdown to HTML, no highlight | 44.82 ms | 63.91 ms | 28.2 MiB | 50.8 MiB | Weavon exact, Carta footnote link differs |
| LaTeX to JSON | 26.06 ms | 41.28 ms | 27.3 MiB | 37.9 MiB | Weavon exact, Carta drops caret |
| DOCX (106 KB) to JSON | 54.65 ms | 95.48 ms | 35.9 MiB | 120.1 MiB | Weavon exact, Carta drops link title |
Deployment and feature scope
| Area | Weavon 0.2.0 | Carta 0.0.16 |
|---|---|---|
| Install footprint | 9.26 MB single stripped binary, zero extra files | 11.52 MB binary plus 4.85 MB required syntax/ folder (16.37 MB) |
| Highlight languages | 194 built-in languages compressed inside the binary | External KDE XML files loaded from syntax/ |
| Embedded PDF | Pure-Rust PDF 1.7 with Croscore fonts, presets, PDF/A-2u, PDF/UA-1 | Requires external PDF engine |
| Native tools | MCP, LSP, live preview, extract, redact, diff, chunk, lint, WASM filters | Converter focused on Pandoc CLI workflows |
Where Carta is the better choice
- Highlighted JSON to HTML (10.93 ms vs 13.95 ms) and highlighted JSON to LaTeX (13.21 ms vs 14.41 ms) run 1.2 to 3.0 ms faster in Carta because
weavon-highlightcompiles withopt-level = "z"for binary size, and Carta writes math spans instead of MathML by default. - Carta keeps syntax XML files unpacked on disk in a separate
syntax/directory, which is convenient if you prefer editing those XML files directly instead of passing--syntax-definition. - If you want to benchmark multiple Rust converters against your own documents, run both side by side and diff the output with
cmp.
Common questions
Why is Carta faster on highlighted JSON to HTML and JSON to LaTeX?
Weavon compiles weavon-highlight with opt-level = "z" to keep its self-contained binary at 9.26 MB. Carta also skips MathML on json-html by default, saving work at the cost of Pandoc parity.
Does Weavon need an external syntax directory like Carta?
No. Weavon compresses all 194 built-in Pandoc 3.13 syntax definitions inside the single 9.26 MB binary and unpacks them on first use.
Which converter uses less memory?
Weavon 0.2.0 uses lower peak RSS than Carta 0.0.16 on all 11 measured workloads, from 1.08x lower on JSON to HTML to 3.35x lower on DOCX to JSON (35.9 MiB vs 120.1 MiB).
Which converter matches Pandoc 3.13 bytes more often?
Weavon matches Pandoc 3.13 byte for byte in all 11 timed cases, while default Carta 0.0.16 matches in 4 of 11 cases.
