If you are referring to nootropics similar to Focalin, here are some validated testing methods:
Schulte Table, one of the simplest tests of attention. All you have to do is select the numbers in the table in ascending or descending order.
Dual-N-Back. This test assesses working memory and attention by requiring individuals to monitor a sequence of stimuli and indicate when the current stimulus matches the one presented "n" steps back.
Stroop Effect Test. This test measures attention and cognitive flexibility by presenting conflicting stimuli (e.g., words written in incongruent colors) and assessing the ability to inhibit automatic responses.
For more specialized testing, it is necessary to go to a hospital for ERP P300 component testing. ERP (Event-Related Potential) P300 component testing is a specialized cognitive assessment that measures brain responses to specific stimuli, particularly the P300 wave, which is associated with attention and cognitive processing.
The website https://humanbenchmark.com/ collects a few of these (reaction time, memory tests, typing test, aim trainer).
There is aimlabs for fps skills, but probably not relevant. Maybe some of the better online IQ tests.
I don't know what this would look like for you, but start by pinning down which aspect of cognition (working memory, episodic memory, spatial visualization, reliability under time pressure...) you want to evaluate and narrow in on things which specifically test that. Even better if the test you settle on is something you generally struggle with, or can do iffily/unreliably well.