# How fast is MarkItDown? Speed and memory, measured

> Start-up cost, bulk conversion modes, PDF and Excel scaling and peak memory for MarkItDown 0.1.9 on a 4-core lab machine, with the scripts and every number.

Source: https://markitdown.dev/performance/ · Updated 2026-11-16·Upstream source ↗

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](https://markitdown.dev/data/startup.csv), [batch-modes.csv](https://markitdown.dev/data/batch-modes.csv), [pdf-scale.csv](https://markitdown.dev/data/pdf-scale.csv), [xlsx-scale.csv](https://markitdown.dev/data/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
| Step | Seconds |
| --- | --- |
| python -c pass | 0.01 |
| import markitdown | 0.84 |
| MarkItDown() constructed | 0.94 |
| markitdown --version | 0.96 |
| markitdown one small .docx | 1.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
| Mode | Files | Seconds | Files per second |
| --- | --- | --- | --- |
| command line, one process per file (40 files, scaled to 400) | 400 | 402.3 | 1.0 |
| one Python process, one MarkItDown reused | 400 | 27.3 | 14.6 |
| process pool, 2 workers, one MarkItDown each | 400 | 23.7 | 16.9 |
| process pool, 4 workers, one MarkItDown each | 400 | 23.1 | 17.3 |
| thread pool, 4 threads, one shared MarkItDown (empty results: 0) | 400 | 30.1 | 13.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)
| Pages | Release | Seconds | Peak memory (MB) |
| --- | --- | --- | --- |
| 1 | 0.1.5 | 0.2 | 111 |
| 1 | 0.1.6 | 0.2 | 110 |
| 1 | 0.1.9 | 0.2 | 108 |
| 10 | 0.1.5 | 1.4 | 183 |
| 10 | 0.1.6 | 1.4 | 108 |
| 10 | 0.1.9 | 1.3 | 107 |
| 100 | 0.1.5 | 15.5 | 930 |
| 100 | 0.1.6 | 12.4 | 110 |
| 100 | 0.1.9 | 12.5 | 110 |
| 500 | 0.1.5 | 75.5 | 4285 |
| 500 | 0.1.6 | 63.4 | 123 |
| 500 | 0.1.9 | 65.4 | 123 |
| 1000 | 0.1.5 | 157.1 | 8467 |
| 1000 | 0.1.6 | 128.5 | 143 |
| 1000 | 0.1.9 | 127.5 | 143 |

*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](https://markitdown.dev/formats/pdf/)).

## Excel: time and memory by size

Workbooks of 10 columns
| Rows | File (MB) | Seconds | Peak memory (MB) | Output characters |
| --- | --- | --- | --- | --- |
| 1000 | 0.05 | 0.8 | 178 | 65963 |
| 10000 | 0.44 | 7.1 | 333 | 717297 |
| 50000 | 2.18 | 36.5 | 1027 | 3837297 |
| 100000 | 4.37 | 74.7 | 1900 | 7770631 |

*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](https://markitdown.dev/formats/excel/)).

## 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
| System | CPUs | Import (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) | 3 | 1.55 | 1.45 | 0.92 | 10.79 | 0.34 | 8.0 | 133.1 |
| Ubuntu 24.04 | 4 | 0.89 | 1.16 | 0.95 | 12.32 | 0.4 | 7.9 | 103.0 |
| Windows Server 2025 | 4 | 1.32 | 1.59 | 0.94 | 12.24 | 0.51 | 9.3 | 142.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
| File | Native (s) | Browser engine (s) |
| --- | --- | --- |
| `report.docx` | 0.178 | 0.359 |
| `pptx-150-slides.pptx` | 0.418 | 1.058 |
| `workbook.xlsx` | 0.017 | 0.123 |
| `pdf-100-pages.pdf` | 0.893 | 1.744 |
| `pdf-10-pages.pdf` | 0.098 | 0.268 |
| `page.html` | 0.007 | 0.17 |
| `csv-quoted-newlines.csv` | 0.004 | 0.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](https://markitdown.dev/online/)).

## 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.

## Related

- [PDF to Markdown](https://markitdown.dev/formats/pdf/): PDF behaviour and the memory history.
- [Excel (XLSX, XLS)](https://markitdown.dev/formats/excel/): Excel behaviour and size.
- [CLI reference](https://markitdown.dev/cli/): The command line.
- [MarkItDown Online (tool)](https://markitdown.dev/online/): The browser converter.

---
Independent guide to the open-source MarkItDown library. Not affiliated with or endorsed by Microsoft. Official source: https://github.com/microsoft/markitdown
