Recorded performance evidence
How fast does Carve render?
Measured engine snapshots on shared hardware. Compare direct conversion, full parsing of authored documents, and the stress corpus.
2026-10-21T03:24:46.274Z; serial processes; Node v22.22.2; PHP 8.5.11 (cli) (built: Sep 24 2026 13:49:29) (NTS); rustc 1.97.1 (8bab26f4f 2026-07-14).
Track A
Direct HTML conversion on core examples
Default public conversion APIs, without opt-in extensions. Peers use equivalent logical content in their native syntax. Features and output differ; these rows measure rendering cost.
These core examples use the direct HTML route in all three engines. The authored-document track below measures full parse (AST) on public documentation files. Both tracks use the default conversion APIs; document features decide the route.
| Language | Carve | Carve MB/s | Fastest peer | Peer MB/s |
|---|---|---|---|---|
| JavaScript | carve-js | 8.06 | markdown-it | 4.27 |
| PHP | carve-php | 17.62 | djot-php | 17.58 |
| Rust | carve-rs | 110.77 | pulldown-cmark | 99.65 |
The archived Rust wall-time snapshot came from a loaded two-round run (one-minute host load 46.54). An eight-round recheck with the same binary found carve-rs faster in 6 of 8 rounds, at 0.716 versus 0.866 process CPU ms/op. The direct-HTML chart uses process CPU time from the verified 24-round rerun for these two Rust rows. First recheck.
The displayed 24-round paired run of that binary found carve-rs faster in 22 of 24 rounds. Pooled process CPU time was 0.539 ms/op for carve-rs and 0.605 ms/op for pulldown-cmark. This measures the two Rust libraries on the core fixture; the shared host remained busy. Rerun method · Raw rounds.
The PHP peer changed route on 2 October: fab953f6 rejected this fixture in its borrowed HTML renderer, while 9c52e611 accepted it. The benchmark updated its Djot pin that day. The old and new Carve rows use the borrowed route, so rankings across those snapshots include a peer route change.
The displayed PHP pair comes from a 32-round process-CPU rerun of merged carve-php 760df44b and the locked djot-php revision. Carve used less CPU in 15 of 32 rounds. Pooled medians were 3.391 and 3.405 ms/op. One-minute load at round starts stayed between 6.88 and 8.11. Method and load range · Raw rounds.
With pipe tables · 18 points (2026-10-21 snapshot with verified pair reruns)
Median process CPU time; 24 paired Rust rounds, 32 paired PHP rounds, two recorded rounds for JavaScript and other peers
JavaScript without pipe tables · 14 points (2026-11-12, Carve main efef22a)
Median timing across all samples from both measurement rounds
JavaScript
| Engine | MB/s |
|---|---|
| carve-js | 8.06 |
| djot.js | 3.34 |
| markdown-it | 4.27 |
PHP
| Engine | MB/s |
|---|---|
| carve-php | 17.62 |
| djot-php | 17.58 |
| league/commonmark-gfm | 0.99 |
Rust
| Engine | MB/s |
|---|---|
| carve-rs | 110.77 |
| jotdown | 24.28 |
| comrak | 19.08 |
| pulldown-cmark | 99.65 |
Historical release comparison and capability scoring · Current dev-main measurement report
JavaScript without pipe tables
Carve, Djot, markdown-it and commonmark.js on equivalent content. This 14-point workload excludes pipe tables and is separate from the comparison with pipe tables above. Final values use median timing across all samples from both measurement rounds. Carve JS uses merged main efef22a, with fast-path use verified. Peers use the released packages named in the report.
| Engine | Median ms/op | MB/s |
|---|---|---|
| carve-js | 2.8096 | 16.88 |
| djot.js | 13.2380 | 3.58 |
| markdown-it | 9.7976 | 4.90 |
| commonmark.js | 5.2037 | 9.22 |
Method, individual rounds and measurement provenance · Raw samples and controls
Paired full-feature comparison
Before and after commits render identical output within each engine. Both use the same CPU settings, with alternating run order. This workload has closed blocks and exercises formatting, quotations, lists, tables, raw HTML and footnotes. Changes describe the observed per-round ratios, not statistical significance. Positive means more elapsed time; negative means less. The range shows variation across rounds. The median paired ratio can differ from the ratio of the two median times.
| Engine | Sections | Median before ms | Median after ms | Median paired change | Paired range |
|---|---|---|---|---|---|
| js | 128 | 52.7779 | 56.3681 | +11.2% | +3.0% to +15.7% |
| js | 512 | 205.7019 | 225.3598 | +7.6% | +4.1% to +27.7% |
| php | 128 | 119.2356 | 129.5381 | +14.7% | -0.8% to +24.6% |
| php | 512 | 490.3246 | 563.3013 | +11.7% | +7.3% to +21.1% |
| rs | 128 | 8.6648 | 8.0922 | -5.7% | -49.0% to +2.3% |
| rs | 512 | 41.4374 | 39.1201 | -6.5% | -14.0% to +192.7% |
Exact commits and method · Output controls, samples and provenance · Exact-corpus revision checks · Historical paired comparison · Historical Rust ranking check
Track B
Concatenated corpus stress test and extension tiers
This corpus joins independent conformance examples into one document. Open fences and containers can interact, so correctness fixes may change the output and nesting. It exercises the normal parser and public AST and is separate from the paired comparison above. This stress input is designed to expose parser depth and feature interactions; the authored-document track gives complete prose examples. Competitor parsers do not accept equivalent syntax, so this track compares Carve implementations and internal PHP tiers. These are shared-host wall-time snapshots; use paired runs to assess changes between revisions.
Check the output byte counts and hashes before treating cross-engine times as equal work.
Fixed committed corpus; input hashes are recorded in the full-run JSON.
The PHP tier table and chart use 15 alternating rounds in one PHP process at the current PHP commit. Tier 1 and Tier 2 render identical HTML on this input. Tier 3 changes output. The earlier separate-process measurements remain available.
small (1.2 KB)
| Engine | ms/op | MB/s | rel |
|---|---|---|---|
| carve-js | 2.1669 | 0.54 | 15.86x |
| carve-php | 2.9667 | 0.40 | 21.72x |
| carve-rs | 0.1366 | 8.61 | 1.00x |
medium (63.6 KB)
| Engine | ms/op | MB/s | rel |
|---|---|---|---|
| carve-js | 244.7102 | 0.25 | 3.90x |
| carve-php | 346.7912 | 0.18 | 5.52x |
| carve-rs | 62.7991 | 0.99 | 1.00x |
large (508.6 KB)
| Engine | ms/op | MB/s | rel |
|---|---|---|---|
| carve-js | 1696.6831 | 0.29 | 3.53x |
| carve-php | 2622.7445 | 0.19 | 5.45x |
| carve-rs | 481.0156 | 1.03 | 1.00x |
PHP authoritative extension tiers
| Profile | Registered extensions | ms/op | MB/s | cost vs Tier 1 | round range, ms |
|---|---|---|---|---|---|
| Tier 1 core/default | 0 | 6.53 | 7.19 | baseline | 3.77 to 7.53 |
| Tier 2 stack | 8 | 7.22 | 6.50 | +11% | 4.33 to 10.17 |
| Tier 3 stack | 20 | 8.55 | 5.49 | +31% | 5.29 to 13.92 |
Track C
Structured document conversion (AST)
Three public Carve documentation files were adapted to Carve once and saved as fixed inputs. All three pinned engines took the full parse route for every complete file. JavaScript and Rust produced identical HTML bytes; PHP added one final newline. This measures real prose, examples, links, and document structure through the default source-to-HTML API. The fixed documents show conversion cost for authored prose and structure; they do not measure how often users take this route.
| Document | Size | JavaScript CPU ms/op | PHP CPU ms/op | Rust CPU ms/op |
|---|---|---|---|---|
| guide | 4.9 KiB | 3.01 | 4.01 | 0.191 |
| migration | 21.4 KiB | 10.97 | 16.83 | 1.41 |
| contract | 96.2 KiB | 62.61 | 108.90 | 13.18 |
Round median ranges
| Document | Engine | Range, CPU ms/op |
|---|---|---|
| guide | JavaScript | 1.94–3.11 |
| guide | PHP | 3.66–5.40 |
| guide | Rust | 0.184–0.355 |
| migration | JavaScript | 7.48–12.53 |
| migration | PHP | 11.85–18.45 |
| migration | Rust | 1.18–1.76 |
| contract | JavaScript | 51.76–84.63 |
| contract | PHP | 90.99–142.51 |
| contract | Rust | 12.71–18.98 |
Measured 2026-10-21. Lower process CPU milliseconds are faster. The chart has a logarithmic axis; the table gives exact medians. Elapsed wall samples remain in the raw data. 4 rotating rounds used 11 warmed samples each. Method and pinned commits · Raw samples · Output controls · Fixture provenance
Track D
Authored documents against peer libraries
Three public documentation files were converted to native Carve, Djot, and Markdown inputs. All three Carve engines took the AST route through their default APIs. All eleven libraries matched the same projected HTML. The djot-php code-span discrepancy in the earlier local run was fixed by PR #325. The chart shows median within-round speed relative to Carve for each runtime and document. Carve is 1×; higher means the peer used less process CPU time. Whiskers show the round range. JavaScript timing starts after 200 warmup conversions per worker.
Absolute CPU time and paired ratios
| Document | Library | CPU ms/op | Speed vs Carve |
|---|---|---|---|
| terms | carve-js | 1.115 | 1.00× |
| terms | djot.js | 0.543 | 2.07× |
| terms | markdown-it | 0.540 | 2.06× |
| terms | commonmark.js | 0.248 | 3.94× |
| terms | carve-php | 2.315 | 1.00× |
| terms | djot-php | 1.086 | 2.00× |
| terms | league/commonmark-gfm | 2.179 | 1.09× |
| terms | carve-rs | 0.150 | 1.00× |
| terms | jotdown | 0.058 | 2.60× |
| terms | comrak | 0.053 | 2.92× |
| terms | pulldown-cmark | 0.022 | 7.07× |
| case-study-parsing-ast | carve-js | 3.754 | 1.00× |
| case-study-parsing-ast | djot.js | 1.462 | 2.68× |
| case-study-parsing-ast | markdown-it | 0.596 | 6.63× |
| case-study-parsing-ast | commonmark.js | 0.376 | 10.95× |
| case-study-parsing-ast | carve-php | 2.827 | 1.00× |
| case-study-parsing-ast | djot-php | 1.317 | 1.95× |
| case-study-parsing-ast | league/commonmark-gfm | 2.946 | 0.93× |
| case-study-parsing-ast | carve-rs | 0.220 | 1.00× |
| case-study-parsing-ast | jotdown | 0.090 | 2.53× |
| case-study-parsing-ast | comrak | 0.060 | 3.70× |
| case-study-parsing-ast | pulldown-cmark | 0.025 | 9.13× |
| spec-history | carve-js | 2.466 | 1.00× |
| spec-history | djot.js | 1.347 | 1.87× |
| spec-history | markdown-it | 1.582 | 1.50× |
| spec-history | commonmark.js | 0.549 | 4.57× |
| spec-history | carve-php | 6.415 | 1.00× |
| spec-history | djot-php | 3.354 | 1.88× |
| spec-history | league/commonmark-gfm | 5.796 | 1.11× |
| spec-history | carve-rs | 0.906 | 1.00× |
| spec-history | jotdown | 0.276 | 3.26× |
| spec-history | comrak | 0.199 | 4.47× |
| spec-history | pulldown-cmark | 0.083 | 10.96× |
Measured 2026-10-24 in 16 rotating rounds on a shared host. The libraries support different grammar and build different internal representations. Carve report · Raw samples and output controls · AST route checks · Fixture provenance.
Engine release history
Release-tag rows retain their 2026-10-02 sessions. Merged main points were refreshed 2026-10-20 at pinned commits. Compare elapsed time within each engine; graphs mark changed output. Separate sessions do not isolate code speedups.
The broad JavaScript rise against 0.1.9 did not repeat across ordinary cases in a fresh paired run. PHP's quoted-fence rise did repeat; merged PR #3595 and PR #3598 reduced it. The pinned Rust recheck was faster than 0.1.6 on quoted fences and mixed documents; the latest 0.1.10 tag is close. The paired history check shows the sources and samples; the dated structured-document run is measured separately.
Explore the dated version history · History CSV · Samples and source commits
Read the measurements
Method and source commits
Higher MB/s is better. The direct HTML chart uses median process CPU time: 24 paired rounds for the two leading Rust libraries and two recorded rounds for the other engines. The separate JavaScript chart without pipe tables uses wall time. Full-corpus rows average many in-process iterations. Each track has its own input mix and route; compare figures within that workload.
These are machine-specific snapshots. Shared host activity affects timings; controlled paired runs are needed to establish improvements or regressions.
Core comparison host
2026-10-21T02:51:04.375Z; AMD Ryzen 9 PRO 7940HS w/ Radeon 780M Graphics; Node v22.22.2; PHP PHP 8.5.11 (cli) (built: Sep 24 2026 13:49:29) (NTS); rustc 1.97.1 (8bab26f4f 2026-07-14); Allowed CPUs: 12. Child processes inherit this affinity, including Node compiler and GC threads.; PHP pair completed 2026-10-21T21:28:55Z
Core peer versions
djot.js 0.3.2; markdown-it 15.0.0; Djot PHP 77e5b6c83978b28b72f314fe52c0a200856ad3f9; league/commonmark 2.10.0. Carve source commits: js 2ce388c2897f2a93e13de8832b3d1c3a5788735c; php 760df44b19013a6b1ae07f7a2cb71da08da84d0c; rs 47fdd7e487fc793133cf6af8396f653975454dd9. Rust peer versions are recorded in the downloadable Cargo lock.
Full-corpus engines measured
carve-js @markup-carve/carve 0.1.12 (local checkout carve-js-main @ 2ce388c28), carve-php markup-carve/carve-php (local checkout carve-php-main @ 2a7a38145), carve-rs carve-lang 0.1.10 (local checkout carve-rs-main @ 47fdd7e48)
Site source: ff8815e3d44eb8ed3596de01cfe33dca39dc67c3.
Reproduce these runs · Feature scoring · HTML import comparison
Download reports
Current merged core peers · Main versus retained tags · Released core comparison · Full corpus · Reproduction guide · Feature scoring · Historical findings · All site data