Reference

How fast is MarkItDown? Speed and memory, measured

Updated 2026-11-16·Upstream source ↗
Markdown view

For small files, almost all the time is Python start-up: about 0.9 seconds before MarkItDown has read a byte. Converting 400 files took 402 seconds when each got its own process and 27 seconds in one process that reused a single converter. Everything below is one run on one 4-core machine, so read the numbers as orders of magnitude.

Short answer

  • Start-up: import markitdown took 0.84 seconds; one small .docx from the command line took 1.15.
  • Many files: reuse one MarkItDown() in one process (about 15 files a second here), not one command per file (about 1).
  • PDFs: about 0.13 seconds a page; memory was flat from release 0.1.6 on.

Tested with markitdown 0.1.9 · Python Linux lab container, 4 CPU cores, Python 3.13.18, markitdown 0.1.9 (and 0.1.5, 0.1.6 for PDF memory); one run each; a second set from GitHub runners on Ubuntu, Windows and macOS (T15, T18) · 2026-11-16 · evidence: startup.csv, batch-modes.csv, pdf-scale.csv, xlsx-scale.csv

Method

A Linux lab container with 4 CPU cores and Python 3.13.18; markitdown 0.1.9 unless stated; the median of three runs for start-up, one run for everything else. Peak memory is the process's maximum resident size. The Linux lab numbers are from our lab machine; a second set below comes from GitHub-hosted Ubuntu, Windows and macOS runners.

Start-up: the cost of the first file

Median of three runs, seconds
StepSeconds
python -c pass0.01
import markitdown0.84
MarkItDown() constructed0.94
markitdown --version0.96
markitdown one small .docx1.15
Median of three runs, seconds Source: Test T15 · 2026-11-16 · markitdown 0.1.9 · Python 3.13 · startup.csv · Download CSV

Importing the library is what takes the time (0.84 seconds of the 0.96 for --version). We did not profile which import dominates.

Converting many files: one process or many

Four hundred small files (100 each of a Word, a PowerPoint, an Excel and a PDF sample):

Total time to convert 400 files
ModeFilesSecondsFiles per second
command line, one process per file (40 files, scaled to 400)400402.31.0
one Python process, one MarkItDown reused40027.314.6
process pool, 2 workers, one MarkItDown each40023.716.9
process pool, 4 workers, one MarkItDown each40023.117.3
thread pool, 4 threads, one shared MarkItDown (empty results: 0)40030.113.3
Total time to convert 400 files Source: Test T15 · 4 CPU cores · one run each · the command-line row was timed on 40 files and multiplied by ten · batch-modes.csv · Download CSV

A process pool gave only a modest gain over one process on these small files (17 against 15 files a second), because each worker pays the start-up. A thread pool sharing one converter ran without errors in our test: all 400 files converted, none came back empty, and it was slower than one process. We did not test thread safety beyond this run.

PDFs: time and memory by size

Seconds and peak memory by page count and release (text pages)
PagesReleaseSecondsPeak memory (MB)
10.1.50.2111
10.1.60.2110
10.1.90.2108
100.1.51.4183
100.1.61.4108
100.1.91.3107
1000.1.515.5930
1000.1.612.4110
1000.1.912.5110
5000.1.575.54285
5000.1.663.4123
5000.1.965.4123
10000.1.5157.18467
10000.1.6128.5143
10000.1.9127.5143
Seconds and peak memory by page count and release (text pages) Source: Test T15 · one run each · pdf-scale.csv · Download CSV

Release 0.1.5 held every page in memory: 4,285 MB for 500 pages, against 123 MB from 0.1.6 on (PDF page).

Excel: time and memory by size

Workbooks of 10 columns
RowsFile (MB)SecondsPeak memory (MB)Output characters
10000.050.817865963
100000.447.1333717297
500002.1836.510273837297
1000004.3774.719007770631
Workbooks of 10 columns Source: Test T15 · markitdown 0.1.9 · xlsx-scale.csv · Download CSV

Time and memory grow with the row count (Excel page).

The same workload on three systems

The same script on GitHub-hosted runners (Python 3.13, markitdown 0.1.9, median of three runs; the macOS runner has 3 CPU cores, the others 4). Runners are shared machines, so differences of a few percent are noise.

Start-up and conversion times by operating system
SystemCPUsImport (s)CLI, one small .docx (s)100-page PDF (s)200-page PDF (s)150-slide PPTX (s)100 files, one process (s)100 files, one command each (s)
macOS 26 (Apple Silicon)31.551.450.9210.790.348.0133.1
Ubuntu 24.0440.891.160.9512.320.47.9103.0
Windows Server 202541.321.590.9412.240.519.3142.8
Start-up and conversion times by operating system Source: Test T15 · GitHub runners · 2026-11-16 · the last column was timed on 20 files and multiplied by five · performance-os.csv · Download CSV

Conversion times were close on all three: PDFs took about 0.1 second a page everywhere. The difference is start-up: importing the library took 0.9 seconds on Ubuntu, 1.3 on Windows and 1.5 on macOS, so the one-command-per-file loop is 30 to 40 percent slower on Windows and macOS than on Ubuntu. We ran one Python version (3.13) on each.

In the browser

Our in-browser converter runs the same library on a WebAssembly Python. Seconds for the same files, natively and through that engine (the engine measured under Node, so a browser may differ):

Same files, native Python against the browser engine
FileNative (s)Browser engine (s)
report.docx0.1780.359
pptx-150-slides.pptx0.4181.058
workbook.xlsx0.0170.123
pdf-100-pages.pdf0.8931.744
pdf-10-pages.pdf0.0980.268
page.html0.0070.17
csv-quoted-newlines.csv0.0040.095
Same files, native Python against the browser engine Source: Test T18 · 2026-11-15 · native-vs-browser.csv · Download CSV

The engine was about two to three times slower on the Word, PowerPoint and PDF files (the 100-page PDF took 1.7 seconds against 0.9), and much slower on the smallest files, where a few milliseconds of native time become about a tenth of a second. There is also a one-time download of the engine (converter page).

What we did not measure

Three runs for every size in the Linux lab tables, other Python versions, Office files with many pictures or charts, and timeouts. Run your own: the scripts are t15_batch.py and t15_pdf_scale.py in the lab folder.