Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from foldersname.filesname import filesname
- from functools import partial
- from random import randint
- import timeit
- test_items = []
- for x in range(0, 10000):
- test_items.append(randint(100, 999))
- #print(test_items)
- times = timeit.Timer(partial(filesname, test_items)).repeat(3, 1000)
- time_taken = min(times) / 1000
- print(time_taken)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement