loc
« Back to VersTracker
Description:
Count lines of code quickly
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: rust cli metrics productivity developer-tools
Install: brew install loc
About:
Loc is a command-line tool written in Rust that counts lines of code across multiple programming languages. It is designed to be significantly faster than traditional tools like cloc or wc by leveraging parallel processing. The tool provides quick, accurate statistics for codebases, making it ideal for developers who need rapid project metrics.
Key Features:
  • Extremely fast performance due to Rust implementation
  • Supports over 100 programming languages
  • Parallel processing capabilities for multi-core systems
  • Respects .gitignore files automatically
Use Cases:
  • Quickly auditing the size and language composition of a new codebase
  • Generating code statistics for project documentation or reports
  • Measuring productivity or progress by tracking line counts over time
Alternatives:
  • cloc – cloc is the industry standard but significantly slower as it is written in Perl.
  • tokei – tokei is another popular Rust-based counter; loc often benchmarks as slightly faster in specific scenarios.
Version History
Detected Version Rev Change Commit
Sep 14, 2024 3:11pm 0 VERSION_BUMP 2e73877c