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

  • Weavon53.6 msExactByte-equal to Pandoc 3.13. 42.2x faster than Pandoc.
  • Carta77.7 msDiffersA footnote reference becomes a link.
  • ferrodoc192.7 msDiffersMath differs, and citations stay as plain text.
  • Pandoc2,264.4 msReferencePandoc 3.13 reference output.

CommonMark to JSON, 1 MB input

  • Weavon23.9 msExactByte-equal to Pandoc 3.13. 30.1x faster than Pandoc.
  • Carta32.5 msExactByte-equal to Pandoc 3.13. 22.1x faster than Pandoc.
  • ferrodoc37.5 msDiffersOnly the pandoc-api-version header differs.
  • Pandoc718.3 msReferencePandoc 3.13 reference output.

HTML to JSON, 1 MB input

  • Weavon18.2 msExactByte-equal to Pandoc 3.13. 39.7x faster than Pandoc.
  • Carta23.4 msDiffersA code block gets its classes twice.
  • ferrodoc43.0 msDiffersOnly the pandoc-api-version header differs.
  • Pandoc721.4 msReferencePandoc 3.13 reference output.

JSON to HTML, 1 MB input

  • Weavon10.1 msExactByte-equal to Pandoc 3.13. 23.2x faster than Pandoc.
  • Carta16.5 msDiffersMath comes out as spans by default, and Pandoc 3.13 writes MathML. With --mathml the bytes are equal, and Weavon is 1.22x to 1.67x faster.
  • ferrodoc31.4 msDiffersMath comes out as spans, and ferrodoc has no MathML option.
  • Pandoc232.9 msReferencePandoc 3.13 reference output.

LaTeX to JSON, 1 MB input

  • Weavon22.0 msExactByte-equal to Pandoc 3.13. 25.4x faster than Pandoc.
  • Carta38.6 msDiffersThe text ^count-1 loses its caret.
  • ferrodocNoneNot runferrodoc has no LaTeX reader.
  • Pandoc559.5 msReferencePandoc 3.13 reference output.

DOCX to JSON, 106 KB input

  • Weavon51.3 msExactByte-equal to Pandoc 3.13. 34.1x faster than Pandoc.
  • Carta90.5 msDiffersA link loses its title.
  • ferrodoc115.1 msDiffersThe API version header and a link title differ.
  • Pandoc1,747.2 msReferencePandoc 3.13 reference output.

Peak Memory

Markdown to HTML, 1 MB input

  • Weavon29.2 MiBExactByte-equal to Pandoc 3.13. 11% of Pandoc memory.
  • Carta54.6 MiBDiffersA footnote reference becomes a link.
  • ferrodoc82.9 MiBDiffersMath differs, and citations stay as plain text.
  • Pandoc262.2 MiBReferencePandoc 3.13 reference output.

CommonMark to JSON, 1 MB input

  • Weavon36.9 MiBExactByte-equal to Pandoc 3.13. 16% of Pandoc memory.
  • Carta49.6 MiBExactByte-equal to Pandoc 3.13. 22% of Pandoc memory.
  • ferrodoc47.2 MiBDiffersOnly the pandoc-api-version header differs.
  • Pandoc229.3 MiBReferencePandoc 3.13 reference output.

HTML to JSON, 1 MB input

  • Weavon21.3 MiBExactByte-equal to Pandoc 3.13. 6% of Pandoc memory.
  • Carta39.7 MiBDiffersA code block gets its classes twice.
  • ferrodoc38.1 MiBDiffersOnly the pandoc-api-version header differs.
  • Pandoc373.2 MiBReferencePandoc 3.13 reference output.

JSON to HTML, 1 MB input

  • Weavon10.8 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Carta15.4 MiBDiffersMath comes out as spans by default, and Pandoc 3.13 writes MathML. With --mathml the bytes are equal, and Weavon is 1.22x to 1.67x faster.
  • ferrodoc14.9 MiBDiffersMath comes out as spans, and ferrodoc has no MathML option.
  • Pandoc155 MiBReferencePandoc 3.13 reference output.

LaTeX to JSON, 1 MB input

  • Weavon36.4 MiBExactByte-equal to Pandoc 3.13. 24% of Pandoc memory.
  • Carta38 MiBDiffersThe text ^count-1 loses its caret.
  • ferrodocNoneNot runferrodoc has no LaTeX reader.
  • Pandoc152.5 MiBReferencePandoc 3.13 reference output.

DOCX to JSON, 106 KB input

  • Weavon32.9 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Carta120.3 MiBDiffersA link loses its title.
  • ferrodoc55.7 MiBDiffersThe API version header and a link title differ.
  • Pandoc463.2 MiBReferencePandoc 3.13 reference output.

Binary Size

Release binary size

  • Weavon9.4 MBWeavon 0.1.0, 9,377,504 bytes.
  • Carta11.5 MBCarta 0.0.16, 11,523,152 bytes.
  • ferrodoc4.9 MBferrodoc 1.0.1, 4,915,952 bytes.
  • Pandoc195.4 MBPandoc 3.13, 195,352,064 bytes.

Pandoc Parity

Byte-equal cases against Pandoc 3.13

  • Weavon11 of 11Exact11 of 11 cases match Pandoc 3.13 byte for byte.
  • Carta4 of 11Differs4 of 11 cases match Pandoc 3.13 byte for byte.
  • ferrodoc3 of 11Differs3 of 11 cases match Pandoc 3.13 byte for byte.
  • PandocReferenceReferencePandoc 3.13 reference output.
Apple M1 measurements. Shorter bars win for speed, memory, and size.
1 MB Markdown to HTML conversion time against peak memoryScatter plot comparing Weavon, Carta, ferrodoc, and Pandoc 3.13 on 1 MB Markdown to HTML wall time and peak RSS.Faster and leaner30601252505001,0002,0004,000075150225300Wall time in ms, log scale (lower is faster)Peak RSS in MiB (lower is leaner)Weavon54 ms, 29.2 MiB, 11 of 11 exactCarta78 ms, 54.6 MiB, 4 of 11 exactferrodoc193 ms, 82.9 MiB, 3 of 11 exactPandoc2,264 ms, 262.2 MiB, reference
1 MB Markdown to HTML on Apple M1. Dashed rings mark tools whose output differs from Pandoc 3.13.

Feature comparison

Pandoc 3.13 and Weavon 0.1.0, with quiet Apple M1 wall-time minimums.
ItemPandoc 3.13Weavon
LanguageHaskellRust
LicenceGPLMIT or Apache-2.0
Input formats5252 (50 pass, 2 partial)
Output formats7777 (75 pass, 1 partial, PDF not compared)
Output parityReference65,891 of 65,937 units equal (99.93%)
Stripped binary size195.35 MB (186.30 MiB)9.38 MB (8.94 MiB, 9.43 MB shipped before strip), 20.8x smaller
Cold start29.94 ms, 36.7 MiB2.65 ms, 2.5 MiB
Markdown to HTML, 1 MB2,264.41 ms, 262.2 MiB53.60 ms, 29.2 MiB (42.2x faster)
DOCX (106 KB) to JSON1,747.23 ms, 463.2 MiB51.27 ms, 32.9 MiB (34.1x faster)
Lua filtersLua 5.4Lua 5.4 with LPeg 1.1.0, 468 of 468 API names
PDF15 external enginesThe same 15 engines, plus --pdf-engine=embedded
Highlighting194 built-in languages194 built-in languages (62 KDE plus Alerts helper, 132 clean-room)
Serverpandoc-serverCompatible server plus raw-byte routes like POST /v1/convert
BrowserNo official moduleWebAssembly, 1.86 MiB gzipped core, 2.04 MiB with PDF (9.62 ms for 100 KB Markdown)
Semantic diffNoweavon diff with Word tracked changes
RAG chunksNoweavon 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.

Quiet Apple M1 comparison of Weavon 0.1.0, Carta 0.0.16, and ferrodoc 1.0.1 against Pandoc 3.13.
MetricWeavon 0.1.0Carta 0.0.16ferrodoc 1.0.1
Byte-equal to Pandoc 3.1311 of 11 cases4 of 11 default (6 of 11 with --mathml)3 of 11 (no LaTeX reader)
Speed vs WeavonFastest on 11 of 111.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 WeavonLowest on 11 of 111.04x to 3.66x higher1.04x to 3.00x higher on 10 supported cases
Stripped binary size9.38 MB self-contained11.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 MiB2.74 ms, 3.4 MiB2.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.