tree-sitter-ruby performance

Instructions counted by valgrind to parse the same 4,479 Ruby files (ruby/spec and the highlight tests) with each release's parser, and the size of its generated parser.c. Lower is better. Repository ยท Playground

Instructions to parse (billions)

16.16v0.23.113.02v0.24.013.85v0.24.113.69v0.25.013.53v0.26.013.53v0.27.0

parser.c (MB)

15.28v0.23.118.33v0.24.019.92v0.24.119.93v0.25.014.56v0.26.014.88v0.27.0

All numbers

VersionInstructionsparser.cStates
v0.23.116,160,814,68315.3 MB5,989
v0.24.013,021,316,99518.3 MB7,189
v0.24.113,852,774,72019.9 MB7,925
v0.25.013,693,082,77019.9 MB7,925
v0.26.013,534,632,90214.6 MB6,123
v0.27.013,530,005,40614.9 MB6,226