Pandoc and Weavon, side by side
Both accept the same command line and write the same bytes for most documents, and Weavon ships as one 9.38 MB stripped Rust binary.
Speed, memory, size, and parity
Weavon is 11.3 to 46.1 times faster than Pandoc 3.13, beats Carta and ferrodoc on every conversion, and matches Pandoc in all 11 cases.
- Weavon 0.1.011 of 11 exact
- Carta 0.0.164 of 11
- ferrodoc 1.0.13 of 11
- Pandoc 3.13Reference
Speed
Markdown to HTML, 1 MB input
CommonMark to JSON, 1 MB input
HTML to JSON, 1 MB input
JSON to HTML, 1 MB input
LaTeX to JSON, 1 MB input
DOCX to JSON, 106 KB input
Peak Memory
Markdown to HTML, 1 MB input
CommonMark to JSON, 1 MB input
HTML to JSON, 1 MB input
JSON to HTML, 1 MB input
LaTeX to JSON, 1 MB input
DOCX to JSON, 106 KB input
Binary Size
Release binary size
Pandoc Parity
Byte-equal cases against Pandoc 3.13
Feature comparison
| Item | Pandoc 3.13 | Weavon |
|---|---|---|
| Language | Haskell | Rust |
| Licence | GPL | MIT or Apache-2.0 |
| Input formats | 52 | 52 (50 pass, 2 partial) |
| Output formats | 77 | 77 (75 pass, 1 partial, PDF not compared) |
| Output parity | Reference | 65,891 of 65,937 units equal (99.93%) |
| Stripped binary size | 195.35 MB (186.30 MiB) | 9.38 MB (8.94 MiB, 9.43 MB shipped before strip), 20.8x smaller |
| Cold start | 29.94 ms, 36.7 MiB | 2.65 ms, 2.5 MiB |
| Markdown to HTML, 1 MB | 2,264.41 ms, 262.2 MiB | 53.60 ms, 29.2 MiB (42.2x faster) |
| DOCX (106 KB) to JSON | 1,747.23 ms, 463.2 MiB | 51.27 ms, 32.9 MiB (34.1x faster) |
| Lua filters | Lua 5.4 | Lua 5.4 with LPeg 1.1.0, 468 of 468 API names |
| 15 external engines | The same 15 engines, plus --pdf-engine=embedded | |
| Highlighting | 194 built-in languages | 194 built-in languages (62 KDE plus Alerts helper, 132 clean-room) |
| Server | pandoc-server | Compatible server plus raw-byte routes like POST /v1/convert |
| Browser | No official module | WebAssembly, 1.86 MiB gzipped core, 2.04 MiB with PDF (9.62 ms for 100 KB Markdown) |
| Semantic diff | No | weavon diff with Word tracked changes |
| RAG chunks | No | weavon chunk to JSON Lines |
Weavon, Carta, and ferrodoc at a glance
Measured on one quiet Apple M1 across 11 conversions, 21 interleaved runs per Rust tool and 3 for Pandoc 3.13. Weavon wins every conversion on speed, peak RSS, instructions, and parity.
| Metric | Weavon 0.1.0 | Carta 0.0.16 | ferrodoc 1.0.1 |
|---|---|---|---|
| Byte-equal to Pandoc 3.13 | 11 of 11 cases | 4 of 11 default (6 of 11 with --mathml) | 3 of 11 (no LaTeX reader) |
| Speed vs Weavon | Fastest on 11 of 11 | 1.13x to 1.77x slower (1.22x to 1.67x with --mathml) | 1.20x to 3.82x slower on 10 supported cases |
| Peak RSS vs Weavon | Lowest on 11 of 11 | 1.04x to 3.66x higher | 1.04x to 3.00x higher on 10 supported cases |
| Stripped binary size | 9.38 MB self-contained | 11.52 MB binary (16.37 MB with required syntax folder) | 4.92 MB (omits LaTeX reader, Lua, citeproc, Office, PDF, server) |
| Cold start (--version) | 2.65 ms, 2.5 MiB | 2.74 ms, 3.4 MiB | 2.20 ms, 2.3 MiB |
Which one to use
Use Weavon for
- The Pandoc command line in less time
- Lower memory and a 9.38 MB binary
- All 194 built-in highlight languages
- MIT or Apache-2.0 licensing
- PDF without TeX and in-process bindings
Use Pandoc for
- The exact GPL Pandoc data files
- Built-in translations matching Pandoc's GPL files
- The Haskell reference implementation itself
You can install both side by side and link pandoc only when you want Weavon to take over.
Common questions
What is the main difference between Pandoc and Weavon?
Pandoc is written in Haskell under the GPL. Weavon is a clean-room Rust implementation under MIT or Apache-2.0, with a native mode that adds extra workflows.
Which formats do Pandoc and Weavon support?
Both cover the 52 input formats and 77 output formats of Pandoc 3.13. Weavon passes 50 input and 75 output formats in full, with JSON reader, JSON writer, and mdoc reader partial.
Which program is faster?
Weavon. On 1 MB documents it is 11.3 to 46.1 times faster in wall time (16.8 to 46.1 times on conversions), starting in 2.65 ms compared with 29.94 ms for Pandoc 3.13.
Which program is smaller?
Weavon. The stripped ARM64 dist binary is 9.38 MB (8.94 MiB, 9.43 MB shipped before strip), which is 20.8 times smaller than Pandoc 3.13 (195.35 MB) and 18.6% smaller than Carta 0.0.16 binary alone.
What does Pandoc include that Weavon omits?
Pandoc ships its own GPL data files such as default.csl, office reference documents, epub.css, and translation files. Weavon ships clean-room replacements for them and highlights all 194 Pandoc 3.13 languages.
Can I keep Pandoc and Weavon on one machine?
Yes. Install Weavon as weavon while keeping pandoc, and create the pandoc symlink only when you are ready.
