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
Why not
for exponent in range(2, 10): test(10 ** exponent)
if I'm reading your intent right.