[Python-Dev] Free lists

Larry Hastings larry at hastings.org
Sun May 10 17:32:02 CEST 2015


On 05/09/2015 11:22 PM, Serhiy Storchaka wrote:
> On 10.05.15 02:25, Ian Cordasco wrote:
>> Can you share how you gathered them so someone could run them on a
>> 64-bit build?
>
> This is quick and dirty patch. It generates 8 GB log file!

I ran it under 64-bit Linux.  Actually it generated a 10GB log file.  It 
was stalled at test_multiprocessing_fork for five hours so I killed it.

What follows are the (apparently) partial results.  I think it makes a 
good case for a one-element freelist for 64-bit builds.


//arry/

--

type                                count       %   acc.%

builtin_function_or_method      131028598  37.25%  37.25%
method                           52062496  14.80%  52.05%
int                              47600237  13.53%  65.59%
str                              43841584  12.46%  78.05%
generator                        14038624   3.99%  82.04%
float                             8617481   2.45%  84.49%
list_iterator                     8214121   2.34%  86.83%
bytes                             7884898   2.24%  89.07%
tuple_iterator                    5172174   1.47%  90.54%
_io.StringIO                      3482733   0.99%  91.53%
set                               3335168   0.95%  92.48%
str_iterator                      2856373   0.81%  93.29%
list                              2245981   0.64%  93.93%
dict                              1682253   0.48%  94.41%
method-wrapper                    1574412   0.45%  94.86%
function                          1475393   0.42%  95.28%
traceback                         1417094   0.40%  95.68%
tuple                             1181899   0.34%  96.01%
memoryview                        1103226   0.31%  96.33%
cell                              1047245   0.30%  96.63%
managedbuffer                     1044764   0.30%  96.92%
bytearray                          714337   0.20%  97.13%
range_iterator                     498240   0.14%  97.27%
range                              485325   0.14%  97.41%
super                              473542   0.13%  97.54%
map                                446608   0.13%  97.67%
frame                              426570   0.12%  97.79%
set_iterator                       424526   0.12%  97.91%
Leaf                               391824   0.11%  98.02%
symtable                           376815   0.11%  98.13%

int                              47600237  13.53%
                              0     294964   0.62%   0.62%
                              1   36135772  75.92%  76.53%
                              2    4504046   9.46%  86.00%
                              3    2109837   4.43%  90.43%
                              4    1277995   2.68%  93.11%
                              5     542775   1.14%  94.25%
                              6     485451   1.02%  95.27%
...

bytes                             7884898   2.24%
                              0        849   0.01%   0.01%
                              1     250357   3.18%   3.19%
                              2     450310   5.71%   8.90%
                              3     259659   3.29%  12.19%
                              4    1157554  14.68%  26.87%
                              5      77493   0.98%  27.85%
                              6     139816   1.77%  29.63%
                              7     165399   2.10%  31.72%
                              8     191821   2.43%  34.16%
                              9      63009   0.80%  34.96%
                             10      48751   0.62%  35.57%
                             11      50505   0.64%  36.22%
                             12      94186   1.19%  37.41%
                             13      33927   0.43%  37.84%
                             14     123546   1.57%  39.41%
                             15      36565   0.46%  39.87%
                             16     447183   5.67%  45.54%
                             17     186609   2.37%  47.91%
                             18    1301737  16.51%  64.42%
...

tuple                             1181899   0.34%
                              0         47   0.00%   0.00%
                              1     120156  10.17%  10.17%
                              2     340983  28.85%  39.02%
                              3      80924   6.85%  45.87%
                              4      78908   6.68%  52.54%
                              5      35502   3.00%  55.55%
                              6     171292  14.49%  70.04%
                              7     136474  11.55%  81.59%
                              8      48435   4.10%  85.69%
...



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20150510/a1793b1e/attachment-0001.html>


More information about the Python-Dev mailing list