times = [timeit.timeit(stmt=stmt.format(10 ** i, 10 ** i), number=100) for
    i in range(1000)]
sum(times) * 1.0 / len(times)
times[-1]
How are basic data types (strings and integers) implemented in Python and Perl