Documentation version 0.1.0a4

Benchmarks

How much of real-world MathML mathconv converts, and how fast. The figures describe mathconv 0.1.0a4, the release this site runs, and are regenerated with every release.

Release
mathconv 0.1.0a4, commit 6bd91e38daae
Coverage
20,000 held-out formulas of the mathconv corpus
Speed
measured on 2026-12-04 at commit 483efea79f45, the median of 5 runs
Machine
one core of a GitHub-hosted ubuntu-latest runner (AMD EPYC 9V74 80-Core Processor)

Coverage

Every formula of the held-out sample is converted, then checked: whether anything was left unconverted, whether KaTeX and MathJax accept the LaTeX, and, where the source also gives its own LaTeX, whether both draw the same. How coverage is measured.

FromToFormulasFully convertedAccepted by KaTeXAccepted by MathJaxLooks like author's LaTeXLooks like normalised LaTeX
mathmllatex20,00099.7%100.0%100.0%81.3%68.6%
mathmltext20,00099.8%----

Measured on 20,000 formulas held out for testing from the mathconv corpus at revision f84cf205ba12.

Fully converted: nothing was left unconverted.

Accepted: the renderer displays the LaTeX without error.

Looks like: where the source also gives LaTeX, both look the same in MathJax.

Speed

Formulas a second on one core, through Converter.convert_batch of the Python package and through the Rust core. A continuous integration job measures every file of the benchmark set with the Rust core and with the installed wheel. How speed is measured.

ConversionTypical, convert_batchTypical, Rust coreWhole set, convert_batchWhole set, Rust core
mathml to latex806,479847,127313,018318,986
mathml to text908,030977,201341,572352,988

Typical: the real formulas of up to 60 elements in tokens-small.txt, scripts.txt, rows.txt, of which real documents are almost entirely made.

Whole set: every file below, including large tables and stress cases.

FileFormulasmathml to latex, Rust coremathml to latex, convert_batchmathml to text, Rust coremathml to text, convert_batch
content.txt36114,962113,025130,490127,237
large.txt2614,69814,76915,54815,441
malformed.txt871,010,803948,1061,132,9991,052,004
pathological.txt127,5567,5058,3068,191
rows.txt100357,709349,960400,769386,313
scripts.txt700514,414496,128591,888562,638
tables.txt2230,62030,44332,97132,559
tokens-small.txt1,2001,665,2941,532,0921,952,8541,715,328