microsoft/onnxruntime has 2,502,446 source lines of code out of 2,937,334 total lines across 7,508 files, counted from the main ref at commit 973f680e7042 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.
As of 2026-10-21 (commit 973f680e7042), microsoft/onnxruntime contains 2,937,334 total lines: 2,502,446 code, 223,036 comments, 211,852 blank, across 7,508 files in 51 languages (top: C++ 67.6%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving microsoft/onnxruntime to commit 973f680e7042, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
This is a very large codebase by counted code lines. Code represents 85.2% of all lines, comments represent 7.6%, and the repository averages 333 code lines per file. C++ accounts for 67.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 2103 | 1839533 | 1691010 | 63618 | 84905 |
| C Header | 2492 | 492414 | 355230 | 78284 | 58900 |
| Python | 636 | 160995 | 126732 | 10703 | 23560 |
| CUDA | 715 | 89473 | 68754 | 9727 | 10992 |
| GNU Style Assembly | 87 | 62635 | 49353 | 8986 | 4296 |
| TypeScript | 257 | 53411 | 40352 | 7860 | 5199 |
| JSON | 79 | 36824 | 36815 | 0 | 9 |
| C# | 75 | 32041 | 21906 | 6894 | 3241 |
| YAML | 212 | 24078 | 20592 | 962 | 2524 |
| Assembly | 59 | 25619 | 18327 | 4435 | 2857 |
| CMake | 112 | 21854 | 16790 | 2556 | 2508 |
| JavaScript | 49 | 15354 | 9575 | 4494 | 1285 |
Top language (C++ 67.6%). Generated at .
microsoft/onnxruntime has 2,937,334 total lines, including 2,502,446 code lines, 223,036 comment lines, and 211,852 blank lines.
OctoCounts resolved the public GitHub repository to commit 973f680e7042, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 973f680e7042 on 2026-10-21T03:13:03.036631910+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for microsoft/onnxruntime on this page — 2,502,446 code lines across 12 languages, counted by tokei.