← Back to Blog

Benchmark: Go Standard Library

Testing loct on the Go source (17,182 files)

Use Case: golang/go - The Go Standard Library

Repository: https://github.com/golang/go Stack: Go Test Date: 2025-12-08 Loctree Version: 0.6.2-dev


Overview

Testing loctree on THE Go standard library - 17,000+ files of pure Go code.

Repository Scale

MetricValue
Go Files17,182
Analysis Time107 seconds
Throughput160 files/sec

Findings

Dead Code Detection

  • High Confidence: 1 finding
  • False Positive Rate: ~0%

The single finding is a Python GDB helper edge case (ChanTypePrinter used in tuple literals) - acceptable edge case for cross-language tooling.

Version History

VersionFP RateStatus
0.5.160%PERFECT
0.6.1-dev100%REGRESSION
0.6.2-dev~0%FIXED

Commands Used

cd GoLang
loct                              # Create snapshot (107s)
loct dead --confidence high       # Dead code analysis
loct twins                        # Duplicate detection

Verdict

PERFECT - Go analysis is production-ready. The 0.6.1 regression was fixed in 0.6.2.

Key Insights

  1. Scalability: 17K files in under 2 minutes
  2. Accuracy: Near-zero false positives
  3. Regression Fixed: Cross-package reference tracking restored

πš…πš’πš‹πšŽπšŒπš›πšŠπšπšπšŽπš. with AI Agents by VetCoders (c)2024-2026 LibraxisAI