setup() is called multiple times, so this will end up growing the number of elements, you could create the elements before calling measureRunsPerSecond as we know that it wont fail.