A simple code to make a benchmark between list
and tuple
in Python.
Issue following command for list
benchmark:
$ python list.py
And use following command for tuple
:
$ python tuple.py
Read more here: http://afshinm.name/python-list-tuple-performance-benchmark