# Benchmark run: 2026-09-27

- Source revision: `9b0c883` (benchmark source and production code; test/docs-only commit `42a33e5` followed).
- OS: Windows 11 build 26200.
- CPU: 13th Gen Intel Core i7-13620H.
- MoonBit: `moon 0.1.20260915`, `moonc v0.10.13+cbb11c36f`.
- Each command ran the benchmark suite once. Each benchmark reports 10 calibrated measurement samples. The output includes both stage measurements and the end-to-end in-memory pipeline.

## Native

Command: `moon bench benchmarks --target native --release --deny-warn`

```text
[Lxxbv/moon_typst] bench benchmarks/pipeline_test.mbt:2 ("document pipeline") ok
name   time (mean ± σ)         range (min … max)
parse    18.50 µs ± 376.72 ns    18.12 µs …  19.55 µs  in 10 ×   5334 runs
layout   10.91 µs ±  87.51 ns    10.76 µs …  11.03 µs  in 10 ×   9119 runs
html     44.48 µs ±   4.30 µs    39.62 µs …  52.47 µs  in 10 ×   9955 runs
svg     113.22 µs ±  22.00 µs    94.35 µs … 163.02 µs  in 10 ×    963 runs
pdf     425.31 µs ±  86.16 µs   329.73 µs … 586.59 µs  in 10 ×    238 runs
[Lxxbv/moon_typst] bench benchmarks/pipeline_test.mbt:48 ("end-to-end in-memory compilation") ok
name     time (mean ± σ)         range (min … max)
e2e_html   46.22 µs ± 530.40 ns    45.52 µs …  46.99 µs  in 10 ×   2162 runs
e2e_svg   130.85 µs ±   2.85 µs   127.21 µs … 134.71 µs  in 10 ×    739 runs
e2e_pdf     1.03 ms ± 287.62 µs   574.77 µs …   1.58 ms  in 10 ×    351 runs
Total tests: 2, passed: 2, failed: 0.
```

## WebAssembly GC

Command: `moon bench benchmarks --target wasm-gc --release --deny-warn`

```text
[Lxxbv/moon_typst] bench benchmarks/pipeline_test.mbt:2 ("document pipeline") ok
name   time (mean ± σ)         range (min … max)
parse     4.04 µs ±  44.41 ns     3.99 µs …   4.10 µs  in 10 ×  24849 runs
layout    2.19 µs ±  89.92 ns     2.07 µs …   2.32 µs  in 10 ×  48686 runs
html     24.09 µs ±   5.03 µs    18.05 µs …  34.73 µs  in 10 ×  18189 runs
svg      92.92 µs ±  31.42 µs    58.29 µs … 134.03 µs  in 10 ×    159 runs
pdf     226.81 µs ±  60.19 µs   178.73 µs … 347.11 µs  in 10 ×    492 runs
[Lxxbv/moon_typst] bench benchmarks/pipeline_test.mbt:48 ("end-to-end in-memory compilation") ok
name     time (mean ± σ)         range (min … max)
e2e_html   14.09 µs ± 322.33 ns    13.75 µs …  14.79 µs  in 10 ×   6838 runs
e2e_svg    46.58 µs ± 557.77 ns    45.86 µs …  47.42 µs  in 10 ×   2140 runs
e2e_pdf   544.24 µs ±  98.58 µs   318.18 µs … 661.11 µs  in 10 ×    781 runs
Total tests: 2, passed: 2, failed: 0.
```

## JavaScript

Command: `moon bench benchmarks --target js --release --deny-warn`

```text
[Lxxbv/moon_typst] bench benchmarks/pipeline_test.mbt:2 ("document pipeline") ok
name   time (mean ± σ)         range (min … max)
parse     4.61 µs ± 117.81 ns     4.45 µs …   4.76 µs  in 10 ×  21753 runs
layout    2.78 µs ± 157.90 ns     2.59 µs …   3.05 µs  in 10 ×  36430 runs
html      7.62 µs ± 966.75 ns     6.23 µs …   9.35 µs  in 10 ×  22365 runs
svg      20.70 µs ±   3.84 µs    16.18 µs …  27.03 µs  in 10 ×   6242 runs
pdf     532.54 µs ±  87.70 µs   436.20 µs … 680.81 µs  in 10 ×    171 runs
[Lxxbv/moon_typst] bench benchmarks/pipeline_test.mbt:48 ("end-to-end in-memory compilation") ok
name     time (mean ± σ)         range (min … max)
e2e_html   15.92 µs ± 593.81 ns    15.06 µs …  17.09 µs  in 10 ×   6285 runs
e2e_svg    47.25 µs ±   1.28 µs    46.00 µs …  49.70 µs  in 10 ×   2034 runs
e2e_pdf     1.06 ms ± 386.90 µs   379.61 µs …   1.73 ms  in 10 ×    355 runs
Total tests: 2, passed: 2, failed: 0.
```
