Output of this command [1]
$ python set_memmory_usage.py
1. Differnece between list, dict and set containers with 1M of numbers regarding the size and container overhead
Sizeof with dict type: 48M, overhead per item 50b
Sizeof with set type: 32M, overhead per item 33b
Sizeof with list type: 8M, overhead per item 8b
----------
2. Caution sizeof depends on the type implementation, for example have a look to the list https://github.com/python/cpython/blob/master/Objects/listobject.c#L2317
the list container returns the size of its internal structure, leaving aside the size of the object stored
Sizeof 1M list wit 32 bytes elements: 8
Sizeof 1M list wit 512 bytes elements: 8