I want to test the performance of some code using an exponentially increasing value. So that as an extra digit is added to the numbers_size the increment is multiplied by 1
To produce the same numbers as your code:
numbers_sizes = (i*10**exp for exp in range(2, 9) for i in range(1, 10)) for n in numbers_sizes: test(n)