[Python-Dev] Free lists

Serhiy Storchaka storchaka at gmail.com
Sun May 10 10:23:17 CEST 2015


Here is comparable statistic collected from tests ran with an executable 
buil with COUNT_ALLOCS.

type                                count       %   acc.%

tuple                           448855278  29.50%  29.50%
frame                           203515969  13.38%  42.88%
str                             182658237  12.01%  54.89%
builtin_function_or_method      156724634  10.30%  65.19%
int                             106561963   7.00%  72.19%
method                           88269762   5.80%  78.00%
list                             50340630   3.31%  81.31%
slice                            36650028   2.41%  83.71%
dict                             34429310   2.26%  85.98%
generator                        33035375   2.17%  88.15%
bytes                            29230573   1.92%  90.07%
function                         24953392   1.64%  91.71%
list_iterator                    21236155   1.40%  93.11%
tuple_iterator                   16800947   1.10%  94.21%
cell                             16369317   1.08%  95.29%
float                             7079162   0.47%  95.75%
_sre.SRE_Match                    6342612   0.42%  96.17%
set                               5322829   0.35%  96.52%
TokenInfo                         5077251   0.33%  96.85%
code                              3643664   0.24%  97.09%
traceback                         3510709   0.23%  97.32%
memoryview                        2860799   0.19%  97.51%
managedbuffer                     2762975   0.18%  97.69%
method-wrapper                    2590642   0.17%  97.86%
Name                              1681233   0.11%  97.97%
bytearray                         1598429   0.11%  98.08%
_io.StringIO                      1439456   0.09%  98.17%
weakref                           1341485   0.09%  98.26%
super                              911811   0.06%  98.32%
range                              798254   0.05%  98.37%




More information about the Python-Dev mailing list