microsoft/onnxruntime

microsoft/onnxruntime has 2,571,676 source lines of code out of 3,012,595 total lines across 7,604 files, counted with tokei from the main ref at commit 14a22c471aa3 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

As of 2026-11-16 (commit 14a22c471aa3), microsoft/onnxruntime contains 3,012,595 total lines: 2,571,676 code, 225,312 comments, 215,607 blank, across 7,604 files in 51 languages (top language: C++ 67.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

As of 2026-11-16 (commit 14a22c471aa3), microsoft/onnxruntime contains 3,012,595 total lines: 2,571,676 code, 225,312 comments, 215,607 blank, across 7,604 files in 51 languages (top language: C++ 67.1%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving microsoft/onnxruntime to commit 14a22c471aa3, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

Repository size insights

This is a very large codebase by counted code lines. Code represents 85.4% of all lines, comments represent 7.5%, and the repository averages 338 code lines per file. C++ accounts for 67.1% of counted code.

LanguageFilesLinesCodeCommentsBlanks
C++2121187524317253776383486032
C Header25225078753685377939859940
Python6551648231300281077124024
CUDA730106470844951008111894
GNU Style Assembly87626354935389864296
TypeScript257535714047578925204
JSON80369393693009
YAML225262082247510442689
C#75320412190668943241
Assembly59256191832744352857
CMake113223311713326892509
JavaScript4915446965544961295

Top language: C++ 67.1%. Generated on .

Counting rules and retention

microsoft/onnxruntime: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does microsoft/onnxruntime have?

microsoft/onnxruntime has 2,571,676 lines of code, plus 225,312 comment lines and 215,607 blank lines, for 3,012,595 total lines at commit 14a22c471aa3 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

How was the microsoft/onnxruntime line count measured?

OctoCounts resolved the public GitHub repository to commit 14a22c471aa3, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

What commit was counted for microsoft/onnxruntime?

This OctoCounts report was generated from main at commit 14a22c471aa3 on November 16, 2026.

Similar repository reports

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,571,676 code lines across 51 languages, counted by tokei.