A developer is looking for a practical way to check the accuracy of a home-built call-graph parser intended to provide relations for better RAG retrieval. According to the Reddit community, comparing its output with reference tools makes sense; precision and recall should also be reported separately for direct and indirect calls rather than combined into a single overall score.
The parser uses Tree-sitter and is intended to handle Go, Rust, C, C++, TypeScript, Python, JavaScript, and Java, among other languages. The developer reports that it produced 774,296 nodes and 1,571,981 edges in 6.03 seconds, with peak memory use of about 9 GB. On the Linux kernel, it reported 64,460 files and roughly 37.3 million lines of code in 43 seconds. These performance figures do not, however, establish how accurate the links are.
For reference data, the community suggests cflow on a small C project and comparisons with Pyright or Jedi references for about 50 Python files. The proposed sample of 200 cases should also deliberately include function pointers, virtual calls, and decorators. A random sample, the reply warns, may contain too many easy direct calls and miss cases where the parser struggles.
The post therefore offers a concrete but not independently verified evaluation recommendation; it does not report results from such a test. The original Reddit post contains both the developer’s question and the community reply.
🇬🇧 https://www.reddit.com/r/LLMDevs/comments/1wx92bq/how_can_i_verify_if_my_call_graphs_are_accurate