Skip to content

v11.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 21 Mar 14:13
· 487 commits to master since this release

Added languages

Thanks to some major internal refactoring, Tokei has received significant performance improvements, and is now one of the fastest code counters across any size of codebase. With Tokei 11 showing up to 40–60% faster results than tokei's previous version. To showcase the improvements I've highlighted benchmarks of counting five differently sized codebases. Redis (~220k lines), Rust (~16M lines), and the Unreal Engine (~37.5M lines). In every one of these benchmarks Tokei 11 performed the best by a noticeable margin.

All benchmarks were done on a 15-inch MacBook Pro, with a 2.7GHz Intel Core i7 processor and 16GB 2133 MHz LPDDR3 RAM running macOS Catalina 10.15.3. Your mileage may vary, All benchmarks were done using hyperfine, using default settings for all programs.

Tokei (~5k lines)

Note This benchmark is not accurate due to tokei and loc both taking less than 5ms to complete, as such there is a high degree of error between these times and should mostly be considered equivalent. However it is included because it is notable that scc takes nearly 3x as long to complete on smaller codebases.
Graph comparing programs running on the tokei source code

Redis (~220k lines)

Graph comparing programs running on the redis source code

Rust (~16M lines)

Graph comparing programs running on the rust source code

Unreal (~37.5M lines)

Graph comparing programs running on the unreal source code