Advertisement
DeaD_EyE

dict_speed.py

Sep 15th, 2016
386
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. import timeit
  2.  
  3. d = dict.fromkeys(str(d) for d in range(10**6))
  4.  
  5. def m():
  6.     _ = list(d)
  7.  
  8. print(timeit.timeit(m, number=1000))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement