I would be interested to see the studies on this and whether or not they controlled for non previously diagnosed ADHD when selecting participants.
I take Amphetamines for ADHD and narcolepsy so they obviously improve my performance- but I’ve also worked with people that abused them and felt like they were performing much better than normal but in reality were just delivering (anecdotally) sloppier pull requests at a faster rate.