Peak performance is around ~4.5 years old
A major study using Beyer Speed Figures found that Thoroughbreds reach their peak racing age at about 4.45 years, with performance improving up to that point and gradually declining afterwards. [pmc.ncbi.nlm.nih.gov]
My 10 years of performance data for NZ concurs alongside my personal observation. Might be different in Oz.