here's a repository with some instructions for working with tree-sitter, specifically on a clojure grammar: https://github.com/sogaiu/tree-sitter-clojure the bits that are necessary for performance measurement are: 1. Prerequisites 2. Initial Setup 3. Measure Performance please let me know if anything is unclear, wrong, etc.