SHARE
TWEET

Untitled

a guest Mar 24th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. from foldersname.filesname import filesname
  2. from functools import partial
  3. from random import randint
  4. import timeit
  5.  
  6. test_items = []
  7. for x in range(0, 10000):
  8.     test_items.append(randint(100, 999))
  9.  
  10. #print(test_items)
  11.  
  12.  
  13. times = timeit.Timer(partial(filesname, test_items)).repeat(3, 1000)
  14.  
  15. time_taken = min(times) / 1000
  16.  
  17. print(time_taken)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top