Zużycie pamięci w Pythonie
2011-02-28 Dodaj komentarz
Poniższe dane zostały zbadane za pomocą prostego skryptu dostępnego na GitHubie
Typ danych | 32 bit | 64 bit | ||
Python 2.6.4 | Python 3.1.1+ | Python 2.6.5 | Python 3.1.2 | |
empty | 1.57 | 2.62 | 2.22 | 3.88 |
none | 4.15 | 4.23 | 8.38 | 8.52 |
one | 4.15 | 4.23 | 8.38 | 8.52 |
tuple | 69.16 | 69.64 | 132.87 | 131.68 |
named | 77.39 | 78.02 | 141.76 | 140.73 |
list | 85.12 | 85.64 | 164.86 | 163.61 |
dict | 179.63 | 182.25 | 345.49 | 345.34 |
flat | 40.41 | 40.71 | 65.98 | 65.89 |
array | 16.43 | 16.23 | 16.23 | 16.39 |
object | 212.39 | 215.39 | 412.52 | 411.39 |
slots | 69.15 | 69.64 | 124.49 | 123.42 |