You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+57-49Lines changed: 57 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -210,79 +210,87 @@ Ox Content is positioned both as a document generator and as a high-performance
210
210
211
211
<!-- benchmark:tables:start -->
212
212
213
-
_Benchmark sweep generated on 2026-07-18 (median of 3 runs). Numbers track the host machine; the relative ordering between engines is the stable signal. Regenerated by `scripts/render-benchmark-tables.mjs`._
213
+
_Benchmark sweep generated on 2026-07-30 (median of 7 runs). Numbers track the host machine; the relative ordering between engines is the stable signal. Regenerated by `scripts/render-benchmark-tables.mjs`._
214
214
215
-
_Environment: runner `blacksmith-32vcpu-ubuntu-2404`, Node `v24.18.0`, Bun `1.3.14`, CPU `AMD EPYC`, 32 logical cores._
215
+
_Environment: runner `blacksmith-32vcpu-ubuntu-2404`, Node `v24.18.1`, Bun `1.3.14`, CPU `Intel(R) Xeon(R) Processor`, 32 logical cores._
|`@ox-content/napi`| 193 | 5.19 ms | 197.05 MB/s |
279
+
|`md4x (napi)`| 156 | 6.40 ms | 159.99 MB/s |
280
+
|`Bun.markdown.html`| 140 | 7.16 ms | 142.98 MB/s |
281
+
|`md4w (md4c)`| 108 | 9.27 ms | 110.41 MB/s |
282
+
|`satteri`| 73 | 13.77 ms | 74.29 MB/s |
283
+
|`markdown-it-ts`| 18 | 54.08 ms | 18.92 MB/s |
284
+
|`@tanstack/markdown`| 17 | 57.30 ms | 17.86 MB/s |
285
+
|`markdown-it`| 17 | 58.81 ms | 17.40 MB/s |
286
+
|`marked`| 16 | 62.50 ms | 16.37 MB/s |
287
+
|`@mizchi/markdown`| 12 | 81.45 ms | 12.56 MB/s |
288
+
|`micromark`| 1 | 765.78 ms | 1.34 MB/s |
289
+
|`remark`| 1 | 1739.84 ms | 0.59 MB/s |
282
290
283
291
<!-- benchmark:tables:end -->
284
292
285
-
The benchmark tables above are regenerated from a clean Blacksmith 32 vCPU CI environment by the [Benchmark docs workflow](.github/workflows/benchmark-docs.yml); run `OX_CONTENT_BENCHMARK_RUNS=7 vp run bench:docs` to refresh them locally. Ox Content leads every comparison: 1.95× ahead of the next-fastest parser (`satteri`) on parse-only and 1.65× ahead of `md4x (napi)` on parse+render at 48.7 KB, and it holds that lead at ~1 MB (2.7× / 1.6×) while sustaining ~148–168 MB/s. The incremental CST parser (`@mizchi/markdown`) and the `unified`/`remark` and `micromark` pipelines fall to ~1 op/sec at 1 MB. See `node benchmarks/bundle-size/parse-benchmark.mjs` for the full sweep across small, medium, large, and ~1 MB inputs.
293
+
The benchmark tables above are regenerated from a clean Blacksmith 32 vCPU CI environment by the [Benchmark docs workflow](.github/workflows/benchmark-docs.yml); run `OX_CONTENT_BENCHMARK_RUNS=7 vp run bench:docs` to refresh them locally. Against the TypeScript renderers, the JavaScript-facing `@ox-content/napi` row is 4.9–5.7× faster to parse and 6.7–10.6× faster to parse+render at 48.7 KB; at ~1 MB the leads grow to 7.3–8.3× and 10.7–11.4×. `@tanstack/markdown` uses `parseMarkdown` and `renderHtml`, while `markdown-it-ts` uses `parse` and `render` on a reused instance. See `node benchmarks/bundle-size/parse-benchmark.mjs` for the full sweep across small, medium, large, and ~1 MB inputs.
0 commit comments