The same conversions in a fraction of the time

On a quiet Apple M1, Weavon is 11.3 to 46.1 times faster than Pandoc 3.13 (16.8 to 46.1 times on conversions) while writing the exact same bytes.

Less time, memory, and disk

  • 2.65 msStartup, Pandoc needs 29.94 ms
  • 29.2 MiB1 MB Markdown RSS, Pandoc needs 262.2 MiB
  • 9.38 MBProgram, Pandoc is 195.35 MB
  • 1.64 s690 documents, Pandoc needs 34.00 s

Wall time on 1 MB documents

Each bar is the minimum on a quiet Apple M1 across 21 interleaved runs for Weavon and 3 for Pandoc 3.13, with byte-equal conversion output.

  • 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

Why it runs faster

  • Quick start

    A stripped Rust binary starts in 2.65 ms and 2.5 MiB RSS.

  • Data on demand

    Styles, locales, and all 194 syntax tables unpack only when needed.

  • In-process core

    WebAssembly converts 100 KB Markdown to HTML in 9.62 ms in Node.js.

  • Parallel batches

    690 conversions across 4 jobs finish in 1.64 s compared with 34.00 s.

What the numbers do not hide

  • All numbers come from one quiet Apple M1, so results on other hardware will vary.
  • Weavon beat Carta 0.0.16 in all 11 conversion cases and ferrodoc 1.0.1 in all 10 supported cases on wall time, peak RSS, and instructions.
  • On cold start (--version), ferrodoc 1.0.1 runs in 2.20 ms compared with 2.65 ms for Weavon because ferrodoc omits the LaTeX reader, Lua 5.4.8, citeproc, PDF, Office, and the HTTP server.

Inspect the full multi-tool charts

Measure Weavon on your machine

  1. Get the source

    Clone the repository and go into its folder.

    git clone https://github.com/weavon/weavon
    cd weavon
  2. Build the measured program

    Build the dist profile, which the published numbers use.

    cargo build --profile dist -p weavon-cli
  3. Run the comparison

    Run each benchmark 15 times for each program, in alternating order.

    python3 tools/bench/run.py --program target/dist/weavon \
      --compare "$(command -v pandoc)" --runs 15 --out bench.json
  4. Read the result

    Each comparison row in bench.json has the ratio, its bounds, the verdict, and same_output.

Common questions

How much faster is Weavon than Pandoc?

On 1 MB documents on a quiet Apple M1, Weavon is 11.3 to 46.1 times faster than Pandoc 3.13 (16.8 to 46.1 times on conversions). Markdown to HTML takes 53.60 ms, and Pandoc needs 2,264.41 ms.

Why is Weavon faster than Pandoc?

Weavon starts in 2.65 ms compared with 29.94 ms for Pandoc 3.13, unpacks embedded data only on demand, and runs batch builds in parallel.

Does Weavon use less memory than Pandoc?

Yes, by 4.2 to 17.5 times across the 11 quiet M1 benchmarks. On the real-document corpus, one conversion needs a median of 7.2 MiB with Weavon and 109.3 MiB with Pandoc 3.13.

Is the output identical when Weavon is faster?

Yes. In all 11 timed cases, --compat=pandoc-3.13 produces the exact same bytes as Pandoc 3.13.

Are the timings CPU time or wall time?

The 1 MB table reports command-line wall time including startup. The 0.1.0 release table reports user plus system CPU time.

How does Weavon compare with Carta and ferrodoc?

On a quiet Apple M1, Weavon beat Carta 0.0.16 in all 11 cases (1.13x to 1.77x faster) and ferrodoc 1.0.1 in all 10 supported cases (1.20x to 3.82x faster) while matching Pandoc 3.13 byte for byte.