Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- import time
- import string
- time_start = time.time()
- count = 0
- for x in itertools.product(string.ascii_lowercase + string.digits, repeat=8):
- x = "".join(x)
- count += 1
- if time.time() - time_start >= 30:
- break
- print ("Benchmarked in 30s: {0} output on single thread".format(count))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement