How to generate exponentially increasing range in Python -


I want to test the execution of some code that uses a fast moving value. That is, because it is added in numbers as an additional number, increments 10 times. This is how I am doing this way but it looks a bit disappointing. Suggestions for improvement without introducing non-standard libraries?

  numbers_symmetry = 100 increments = 100 numbers_relegance = 1000000000 while numbers_ size & lt; Number_time: T = time.time () test (number_size) taken_t = time.time () -t print number_size, test, taken_t increment = 10 ** (lane (straw (number_size)) - 1) number_size + = increments    

To create the same number as your code:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -