Created
November 20, 2017 12:43
-
-
Save nickylimjj/48635d2019b905ce39b1e4aea17048ce to your computer and use it in GitHub Desktop.
Python list Implementation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ python -m timeit --setup="x = [None]*1000" "x[500]" | |
10000000 loops, best of 3: 0.0579 usec per loop | |
$ python -m timeit --setup="x = [None]*1000" "x[0]" | |
10000000 loops, best of 3: 0.0566 usec per loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment