Measured speed, memory, and binary size

Every number comes from one Apple M1, and Weavon writes the same bytes as Pandoc 3.13 in every timed case.

Weavon, Carta, ferrodoc, and Pandoc on one computer

Weavon was the fastest of the four in every case, with the same bytes as Pandoc 3.13.

  • 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 JSON, 1 MB input

  • Weavon6.0 msExactByte-equal to Pandoc 3.13. 20.3x faster than Pandoc.
  • Carta8.4 msExactByte-equal to Pandoc 3.13. 14.5x faster than Pandoc.
  • ferrodoc10.7 msExactByte-equal to Pandoc 3.13. 11.4x faster than Pandoc.
  • Pandoc122.2 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.

JSON to HTML, no highlighting, 1 MB input

  • Weavon7.9 msExactByte-equal to Pandoc 3.13. 23.9x faster than Pandoc.
  • Carta9.6 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.
  • ferrodoc28.0 msDiffersMath comes out as spans, and ferrodoc has no MathML option.
  • Pandoc188.4 msReferencePandoc 3.13 reference output.

JSON to LaTeX, 1 MB input

  • Weavon12.5 msExactByte-equal to Pandoc 3.13. 16.8x faster than Pandoc.
  • Carta18.9 msExactByte-equal to Pandoc 3.13. 11.2x faster than Pandoc.
  • ferrodoc15.0 msExactByte-equal to Pandoc 3.13. 14.0x faster than Pandoc.
  • Pandoc211.2 msReferencePandoc 3.13 reference output.

JSON to LaTeX, no highlighting, 1 MB input

  • Weavon10.4 msExactByte-equal to Pandoc 3.13. 18.4x faster than Pandoc.
  • Carta11.7 msExactByte-equal to Pandoc 3.13. 16.3x faster than Pandoc.
  • ferrodoc14.5 msExactByte-equal to Pandoc 3.13. 13.2x faster than Pandoc.
  • Pandoc190.9 msReferencePandoc 3.13 reference output.

Markdown to HTML, no highlighting, 1 MB input

  • Weavon44.7 msExactByte-equal to Pandoc 3.13. 46.1x faster than Pandoc.
  • Carta60.4 msDiffersA footnote reference becomes a link.
  • ferrodoc170.8 msDiffersMath differs, and citations stay as plain text.
  • Pandoc2,063.5 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 JSON, 1 MB input

  • Weavon10.1 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Carta11.3 MiBExactByte-equal to Pandoc 3.13. 8% of Pandoc memory.
  • ferrodoc11.2 MiBExactByte-equal to Pandoc 3.13. 8% of Pandoc memory.
  • Pandoc141.4 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.

JSON to HTML, no highlighting, 1 MB input

  • Weavon10 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Carta11.7 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.6 MiBDiffersMath comes out as spans, and ferrodoc has no MathML option.
  • Pandoc149.3 MiBReferencePandoc 3.13 reference output.

JSON to LaTeX, 1 MB input

  • Weavon10.8 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Carta15.7 MiBExactByte-equal to Pandoc 3.13. 10% of Pandoc memory.
  • ferrodoc11.2 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Pandoc153.7 MiBReferencePandoc 3.13 reference output.

JSON to LaTeX, no highlighting, 1 MB input

  • Weavon10.2 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Carta12.2 MiBExactByte-equal to Pandoc 3.13. 8% of Pandoc memory.
  • ferrodoc10.9 MiBExactByte-equal to Pandoc 3.13. 7% of Pandoc memory.
  • Pandoc151.9 MiBReferencePandoc 3.13 reference output.

Markdown to HTML, no highlighting, 1 MB input

  • Weavon28.2 MiBExactByte-equal to Pandoc 3.13. 11% of Pandoc memory.
  • Carta51.2 MiBDiffersA footnote reference becomes a link.
  • ferrodoc84.5 MiBDiffersMath differs, and citations stay as plain text.
  • Pandoc249.5 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.
Full table and method

All four programs ran in one quiet session on the same Apple M1, and each output was compared with Pandoc byte for byte. Carta matched Pandoc in 4 cases, and ferrodoc 1.0.1 in 3.

Fastest wall time, peak RSS, and parity with Pandoc 3.13 on 2026-12-02.
ConversionWeavon 0.1.0Carta 0.0.16ferrodoc 1.0.1Pandoc 3.13
CommonMark to JSON, 1 MB23.9 ms, 36.9 MiB, same bytes32.5 ms, 49.6 MiB, same bytes37.5 ms, 47.2 MiB, differs718.3 ms, 229.3 MiB, reference
HTML to JSON, 1 MB18.2 ms, 21.3 MiB, same bytes23.4 ms, 39.7 MiB, differs43.0 ms, 38.1 MiB, differs721.4 ms, 373.2 MiB, reference
JSON to JSON, 1 MB6.0 ms, 10.1 MiB, same bytes8.4 ms, 11.3 MiB, same bytes10.7 ms, 11.2 MiB, same bytes122.2 ms, 141.4 MiB, reference
JSON to HTML, 1 MB10.1 ms, 10.8 MiB, same bytes16.5 ms, 15.4 MiB, differs31.4 ms, 14.9 MiB, differs232.9 ms, 155 MiB, reference
JSON to HTML, no highlighting, 1 MB7.9 ms, 10 MiB, same bytes9.6 ms, 11.7 MiB, differs28.0 ms, 14.6 MiB, differs188.4 ms, 149.3 MiB, reference
JSON to LaTeX, 1 MB12.5 ms, 10.8 MiB, same bytes18.9 ms, 15.7 MiB, same bytes15.0 ms, 11.2 MiB, same bytes211.2 ms, 153.7 MiB, reference
JSON to LaTeX, no highlighting, 1 MB10.4 ms, 10.2 MiB, same bytes11.7 ms, 12.2 MiB, same bytes14.5 ms, 10.9 MiB, same bytes190.9 ms, 151.9 MiB, reference
Markdown to HTML, 1 MB53.6 ms, 29.2 MiB, same bytes77.7 ms, 54.6 MiB, differs192.7 ms, 82.9 MiB, differs2,264.4 ms, 262.2 MiB, reference
Markdown to HTML, no highlighting, 1 MB44.7 ms, 28.2 MiB, same bytes60.4 ms, 51.2 MiB, differs170.8 ms, 84.5 MiB, differs2,063.5 ms, 249.5 MiB, reference
LaTeX to JSON, 1 MB22.0 ms, 36.4 MiB, same bytes38.6 ms, 38 MiB, differsNot run559.5 ms, 152.5 MiB, reference
DOCX to JSON, 106 KB51.3 ms, 32.9 MiB, same bytes90.5 ms, 120.3 MiB, differs115.1 ms, 55.7 MiB, differs1,747.2 ms, 463.2 MiB, reference
  • All three Rust programs ran syntax highlighting (Carta staged with its 4.85 MB syntax directory), and their highlighted code blocks matched Pandoc 3.13 byte for byte in each case.
  • With --mathml, Carta writes the same JSON to HTML bytes as Pandoc 3.13 and Weavon is 1.67x faster with highlighting on and 1.22x faster with highlighting off.
  • Weavon wins all 11 cases in minimum wall time, median wall time, peak RSS, and instructions retired against both Carta 0.0.16 and Pandoc 3.13, and wins all 10 supported cases against ferrodoc 1.0.1.
  • On the three tightest memory cases, 5 interleaved /usr/bin/time -l runs confirm the peak RSS medians with zero overlap (JSON to LaTeX 10.83 vs 11.22 and 15.69 MiB, JSON to LaTeX no highlighting 10.16 vs 10.88 and 12.20 MiB, LaTeX to JSON 36.39 vs 37.97 MiB).
  • On cold start (--version), Weavon takes 2.65 ms and 2.5 MiB RSS, beating Carta 0.0.16 (2.74 ms, 3.4 MiB) and Pandoc 3.13 (29.94 ms, 36.7 MiB), while ferrodoc 1.0.1 starts in 2.20 ms (2.3 MiB) because it omits the LaTeX reader, Lua 5.4.8, citeproc, PDF, Office, and the HTTP server.
  • A C posix_spawn and wait4 runner with 2 warm-up runs and 21 interleaved timed runs rotating tool order each round (3 timed runs for Pandoc 3.13). Measured on a quiet machine with load average 3.15 at start and 2.25 at end.
  • Stripped ARM64 binaries of Weavon 0.1.0 (dist, 9.38 MB stripped, 9.43 MB shipped before strip), Carta 0.0.16 (11.52 MB binary plus its required 4.85 MB syntax directory), ferrodoc 1.0.1 (4.92 MB, narrower scope), and Pandoc 3.13 (195.35 MB).

Wall time on 1 MB documents

Weavon is 11.3 to 46.1 times faster than Pandoc 3.13, with process start included.

Weavon speedup over Pandoc 3.13 across workloadsHorizontal bar chart showing Weavon wall-time speedup over Pandoc 3.13 from 11.3x to 46.1x on Apple M1.0x10x20x30x40x50xStartup (--version). Weavon 2.65 ms, Pandoc 29.94 ms, 11.3 times faster.Startup (--version)11.3xCommonMark to JSON. Weavon 23.88 ms, Pandoc 718.29 ms, 30.1 times faster.CommonMark to JSON30.1xHTML to JSON. Weavon 18.16 ms, Pandoc 721.39 ms, 39.7 times faster.HTML to JSON39.7xJSON to JSON. Weavon 6.01 ms, Pandoc 122.21 ms, 20.3 times faster.JSON to JSON20.3xJSON to HTML. Weavon 10.06 ms, Pandoc 232.91 ms, 23.2 times faster.JSON to HTML23.2xJSON to HTML, no highlighting. Weavon 7.88 ms, Pandoc 188.37 ms, 23.9 times faster.JSON to HTML, no highlighting23.9xJSON to LaTeX. Weavon 12.54 ms, Pandoc 211.19 ms, 16.8 times faster.JSON to LaTeX16.8xJSON to LaTeX, no highlighting. Weavon 10.39 ms, Pandoc 190.91 ms, 18.4 times faster.JSON to LaTeX, no highlighting18.4xMarkdown to HTML. Weavon 53.60 ms, Pandoc 2,264.41 ms, 42.2 times faster.Markdown to HTML42.2xMarkdown to HTML, no highlighting. Weavon 44.72 ms, Pandoc 2,063.54 ms, 46.1 times faster.Markdown to HTML, no highlighting46.1xLaTeX to JSON. Weavon 22.02 ms, Pandoc 559.54 ms, 25.4 times faster.LaTeX to JSON25.4xDOCX (106 KB) to JSON. Weavon 51.27 ms, Pandoc 1,747.23 ms, 34.1 times faster.DOCX (106 KB) to JSON34.1xWall-time speedup over Pandoc 3.13 (higher is faster)
Minimum wall time on Apple M1 (21 interleaved runs for Weavon, 3 for Pandoc 3.13). Conversions use 1 MB inputs (106 KB DOCX) and match Pandoc bytes, while Cold start runs --version.
  • Weavon
  • Pandoc 3.13
  • Startup (--version)
    2.6 ms
    29.9 ms
  • CommonMark to JSON
    23.9 ms
    718.3 ms
  • HTML to JSON
    18.2 ms
    721.4 ms
  • JSON to JSON
    6.0 ms
    122.2 ms
  • JSON to HTML
    10.1 ms
    232.9 ms
  • JSON to HTML, no highlighting
    7.9 ms
    188.4 ms
  • JSON to LaTeX
    12.5 ms
    211.2 ms
  • JSON to LaTeX, no highlighting
    10.4 ms
    190.9 ms
  • Markdown to HTML
    53.6 ms
    2,264.4 ms
  • Markdown to HTML, no highlighting
    44.7 ms
    2,063.5 ms
  • LaTeX to JSON
    22.0 ms
    559.5 ms
  • DOCX (106 KB) to JSON
    51.3 ms
    1,747.2 ms
Table and method
Wall time and peak memory on 2026-12-02. Peak RSS includes the shared libraries on macOS.
ConversionWeavonPandoc 3.13SpeedupWeavon peak RSSPandoc peak RSS
Startup (--version)2.6 ms29.9 ms11.3x2.5 MiB36.7 MiB
CommonMark to JSON23.9 ms718.3 ms30.1x36.9 MiB229.3 MiB
HTML to JSON18.2 ms721.4 ms39.7x21.3 MiB373.2 MiB
JSON to JSON6.0 ms122.2 ms20.3x10.1 MiB141.4 MiB
JSON to HTML10.1 ms232.9 ms23.2x10.8 MiB155.0 MiB
JSON to HTML, no highlighting7.9 ms188.4 ms23.9x10.0 MiB149.3 MiB
JSON to LaTeX12.5 ms211.2 ms16.8x10.8 MiB153.7 MiB
JSON to LaTeX, no highlighting10.4 ms190.9 ms18.4x10.2 MiB151.9 MiB
Markdown to HTML53.6 ms2,264.4 ms42.2x29.2 MiB262.2 MiB
Markdown to HTML, no highlighting44.7 ms2,063.5 ms46.1x28.2 MiB249.5 MiB
LaTeX to JSON22.0 ms559.5 ms25.4x36.4 MiB152.5 MiB
DOCX (106 KB) to JSON51.3 ms1,747.2 ms34.1x32.9 MiB463.2 MiB
  • The computer is a MacBookPro17,1, Apple M1, 16 GiB memory, quiet machine (load average 3.15 to 2.25), with macOS 27.0.1 (arm64).
  • Weavon uses the stripped dist profile (9.38 MB stripped, 9.43 MB shipped before strip) with opt-level z default, opt-level s on 11 hot crates, opt-level 3 on zlib-rs, fat LTO, one codegen unit, macOS 12.0 deployment target, and panic abort (exit code 62 on internal error, also used by the published container image). The dist-lib profile keeps panic unwind for the C ABI, Python bindings, and source-built Docker images, while Node bindings run the dist WebAssembly module.
  • The Pandoc program is pandoc 3.13, the official arm64 macOS release binary, run with env -u GHCRTS.
  • 2 warm-up runs, then 21 interleaved timed runs through posix_spawn rotating tool order each round (3 timed runs for Pandoc 3.13). Peak RSS and instructions retired come from /usr/bin/time -l, with 5-run interleaved medians confirming the 3 tightest memory cases.
  • Each stripped binary ran from /tmp on APFS with inputs staged locally. The --compat=pandoc-3.13 output is byte-equal to Pandoc 3.13 in all 11 conversion cases.
  • Cold start (--version) takes 2.65 ms minimum (2.85 ms median) and 2.5 MiB RSS, beating Carta 0.0.16 (2.74 ms, 3.4 MiB) and Pandoc 3.13 (29.94 ms, 36.7 MiB).

Real-document corpus

230 real documents in 3 formats, built in parallel and checked byte for byte.

The real-document corpus of 230 documents and 3 output formats, with 690 conversions in each pass.
ModeJobsProgramCPU secondsElapsed wall secondsDocuments per secondMax peak MiBEqual outputs
sequential1Weavon5.826.9331.00123.1645 / 690
sequential1Pandoc73.7383.322.58283.4645 / 690
parallel4Weavon5.651.64131.31123.2645 / 690
parallel4Pandoc109.7534.006.32283.3645 / 690
How the corpus counts errors

Both programs stop with the same parse error (exit code 64) on 15 LaTeX documents in each of the 3 formats. These 45 conversions do not count as equal outputs in this table. All 645 other conversions give the same bytes. The corpus suite counts the 45 equal errors as passes and gives 690 of 690.

Peak memory

Weavon uses 10.0 MiB to 36.9 MiB of peak memory on 1 MB inputs, and Pandoc uses 141.4 MiB to 463.2 MiB.

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.

Program and bundle size

  • 9.38 MBWeavon stripped binary (9.43 MB before strip)
  • 186.3 MiBPandoc program
  • 1.86 MiBCore browser bundle, gzipped
  • 2.04 MiBBrowser bundle with PDF, gzipped
Release binary size against byte-equal Pandoc parityScatter plot comparing binary size in megabytes and byte-equal Pandoc parity for Weavon, Carta, ferrodoc, and Pandoc 3.13.Compact and exact4 MB8 MB16 MB32 MB64 MB128 MB256 MB036911Release binary size in MB, log scale (smaller is leaner)Byte-equal cases out of 11 (higher is better)Weavon9.38 MB, 52 readers, 77 writers, 11 of 11 exactCarta11.52 MB, 4 of 11 exactferrodoc4.92 MB, 3 of 11 exact, no LaTeX readerPandoc195.4 MB, 52 readers, 77 writers, reference
Weavon combines a 9.38 MB stripped binary with 52 readers, 77 writers, and 11 of 11 byte-equal cases.
Exact sizes
Size of the stripped ARM64 program.
BuildBytesMiB
Weavon v0.1.0 (dist, stripped ARM64, 9.43 MB before strip)9,377,5048.94
Carta 0.0.16 (binary only)11,523,15210.99
Carta 0.0.16 (binary plus syntax directory)16,372,80815.61
ferrodoc 1.0.1 (narrower scope)4,915,9524.69
Weavon earlier dist build (panic unwind)13,299,45612.68
Pandoc 3.13 release binary195,352,064186.30

The embedded data, including all 194 syntax definitions, CSL styles, locales, and templates, is compressed inside the program and unpacked on first use. The dist CLI and the published Docker image set panic abort (exit code 62 on internal error), dist-lib keeps panic unwind for the C ABI, Python bindings, and source-built Docker images, and Node bindings run the dist WebAssembly module.

WebAssembly bundles (core Markdown and HTML, plus PDF), measured on 2026-12-02.
BundleRaw bytesgzip -9 bytes
Core (Markdown and HTML, dist)4,415,7811,952,445
Core plus PDF (dist, --features pdf)4,899,6142,133,909
Core (Markdown and HTML, dist-wasm)3,995,6591,798,658

In Node.js v22.23.2, the dist WebAssembly core bundle converts 100 KB Markdown to HTML in 9.62 ms and 100 KB CommonMark to HTML in 6.48 ms, while adding the pdf feature gives 2.04 MiB gzipped.

Conversion in one process

Paired library calls of weavon::pipeline::convert_bytes from 2026-12-01 show about 9 ms of process-start and file-read overhead avoided in process.

Median of 15 paired library calls and command-line runs on 1 MB inputs (2026-12-01 baseline).
ConversionIn one processCommand line
CommonMark to JSON26.1 ms36.4 ms
HTML to JSON23.4 ms32.3 ms
JSON to HTML13.2 ms22.2 ms
JSON to LaTeX11.7 ms20.6 ms

Release 0.1.0 measurement in CPU time

CPU time is the user time plus the system time, and it changes less than wall time on a busy machine.

Release 0.1.0 summary, 2026-11-30.
MeasurementWeavonPandocWeavon to Pandoc ratio
Startup, --version, median CPU2.73 ms18.36 ms0.149
Startup, empty Markdown to HTML, median CPU3.33 ms19.19 ms0.173
Markdown to HTML, 1.29 MB input, median CPU556.6 ms3,103.1 ms0.179
JSON to HTML, 8.19 MB input, median CPU245.9 ms1,686.7 ms0.143
Corpus, 690 conversions in sequence, CPU5.82 s73.73 s0.079
Corpus, median peak memory of one conversion7.2 MiB109.3 MiB0.065
Each benchmark

Other programs ran during the measurement. The load average was 3.5 to 9.5 on 8 cores. Each benchmark has at least 15 timed runs of each program in alternating order. The input doc-xN repeats one Markdown section N times, and the tool reports a ratio with its 95% confidence interval only when the two outputs are equal.

Release 0.1.0 conversion benchmarks, with CPU time in ms and peak memory in MiB.
BenchmarkInput bytesWeavon median CPUPandoc median CPUWeavon to Pandoc ratio (95% CI)Weavon peak MiB, median and maxPandoc peak MiB, median and maxEqual output
startup-version02.7318.36n/a2.9 / 2.936.6 / 36.7No
startup-empty-html03.3319.190.173 (0.166 to 0.178)4.5 / 4.640.0 / 40.0Yes
md-to-html-startup03.3619.270.174 (0.171 to 0.176)4.5 / 4.640.0 / 40.0Yes
md-to-html-x1012,6819.6269.490.138 (0.136 to 0.140)10.5 / 10.7115.1 / 115.2Yes
md-to-html-x100127,71257.97347.640.166 (0.161 to 0.169)34.4 / 34.6136.2 / 136.2Yes
md-to-html-x10001,287,823556.583103.080.179 (0.174 to 0.180)252.0 / 254.3320.2 / 320.2Yes
md-to-html-standalone-startup07.2035.210.203 (0.199 to 0.208)6.0 / 6.0108.3 / 108.3Yes
md-to-html-standalone-x1012,68113.9572.440.190 (0.186 to 0.193)11.9 / 12.0116.6 / 116.6Yes
md-to-html-standalone-x100127,71266.87361.620.184 (0.182 to 0.187)40.5 / 40.6136.6 / 136.7Yes
md-to-html-standalone-x10001,287,823623.613238.520.192 (0.182 to 0.194)305.5 / 306.3354.7 / 354.7Yes
md-to-latex-startup03.3318.840.175 (0.169 to 0.183)4.6 / 4.638.9 / 38.9Yes
md-to-latex-x1012,6819.2866.200.138 (0.135 to 0.141)10.3 / 10.4114.8 / 114.8Yes
md-to-latex-x100127,71253.98325.030.166 (0.160 to 0.167)33.4 / 33.6130.8 / 130.8Yes
md-to-latex-x10001,287,823507.062857.840.178 (0.175 to 0.180)240.9 / 241.3297.8 / 297.9Yes
md-to-docx-startup04.7432.47n/a6.9 / 7.064.6 / 64.6No
md-to-docx-x1012,68110.4885.96n/a11.1 / 11.2119.3 / 119.3No
md-to-docx-x100127,71255.45383.96n/a28.6 / 28.7143.3 / 143.3No
md-to-docx-x10001,287,823521.203345.42n/a197.0 / 197.1453.3 / 453.4No
md-to-json-startup03.3018.760.172 (0.169 to 0.181)4.5 / 4.538.5 / 38.5Yes
md-to-json-x1012,6817.4150.000.146 (0.143 to 0.150)8.3 / 8.5109.6 / 109.6Yes
md-to-json-x100127,71239.24240.000.163 (0.161 to 0.165)24.2 / 24.4117.6 / 117.7Yes
md-to-json-x10001,287,823371.831996.430.186 (0.184 to 0.189)169.3 / 169.7201.6 / 201.7Yes
json-to-html-startup553.3619.380.174 (0.169 to 0.181)4.4 / 4.439.9 / 39.9Yes
json-to-html-x1081,7226.4655.010.115 (0.111 to 0.119)8.8 / 8.9115.0 / 115.0Yes
json-to-html-x100817,71426.95202.350.133 (0.121 to 0.135)27.0 / 27.8137.0 / 137.0Yes
json-to-html-x10008,188,326245.931686.740.143 (0.137 to 0.146)227.7 / 227.8328.0 / 328.0Yes
md-to-html-lua-identity-startup05.5121.490.252 (0.245 to 0.259)7.2 / 7.344.0 / 44.0Yes
md-to-html-lua-identity-x1012,68113.8688.230.156 (0.152 to 0.159)13.6 / 13.8116.2 / 116.3Yes
md-to-html-lua-identity-x100127,71280.68511.400.158 (0.152 to 0.159)40.8 / 44.7138.4 / 138.4Yes
md-to-html-lua-identity-x10001,287,823782.344887.110.159 (0.155 to 0.163)295.7 / 333.6331.0 / 331.0Yes
md-to-html-highlight-startup03.3719.390.174 (0.164 to 0.177)4.5 / 4.640.2 / 40.2Yes
md-to-html-highlight-x1011,15013.0657.060.227 (0.222 to 0.230)7.9 / 7.968.7 / 68.7Yes
md-to-html-highlight-x100111,50094.94382.880.248 (0.236 to 0.251)17.2 / 17.3173.0 / 173.0Yes
  • startup-version prints the name and the licence of Weavon. This difference is deliberate.
  • md-to-docx compares word/document.xml. The two files are equal after the removal of the whitespace between tags. The other DOCX parts come from the reference document of Weavon, which does not copy the GPL reference document of Pandoc.

Run the benchmarks yourself

docs/BENCHMARKS.md has the commands, the statistics, and the raw data.

python3 tools/bench/make_inputs.py --oracle "$WEAVON_ORACLE_PANDOC" --out-dir BENCH/inputs
cp benchmarks/launch.toml BENCH/launch.toml
cargo build --profile dist -p weavon-cli
env -u GHCRTS python3 tools/bench/run.py --program target/dist/weavon \
  --compare "$WEAVON_ORACLE_PANDOC" --expect-equal --runs 15 --max-runs 30 \
  --benchmarks BENCH/launch.toml --out benchmarks/results/0.1.0-macos-arm64.json