Serhiy Storchaka <storch...@gmail.com> added the comment:

On 32-bit Linux, Intel Atom N570 @ 1.66GHz:

Py2.7        Py3.2        Py3.3        patched

214 (+718%)  215 (+714%)  363 (+382%)  1750   encode  utf-32le  'A'*10000
214 (+704%)  214 (+704%)  362 (+375%)  1720   encode  utf-32le  '\x80'*10000
214 (+712%)  215 (+708%)  363 (+379%)  1738   encode  utf-32le    
'\x80'+'A'*9999
214 (+698%)  214 (+698%)  342 (+399%)  1707   encode  utf-32le  '\u0100'*10000
214 (+688%)  215 (+684%)  343 (+392%)  1686   encode  utf-32le    
'\u0100'+'A'*9999
214 (+699%)  215 (+695%)  342 (+400%)  1710   encode  utf-32le    
'\u0100'+'\x80'*9999
214 (+694%)  214 (+694%)  342 (+397%)  1699   encode  utf-32le  '\u8000'*10000
214 (+688%)  215 (+685%)  343 (+392%)  1687   encode  utf-32le    
'\u8000'+'A'*9999
214 (+700%)  214 (+700%)  342 (+401%)  1713   encode  utf-32le    
'\u8000'+'\x80'*9999
214 (+682%)  215 (+679%)  342 (+389%)  1674   encode  utf-32le    
'\u8000'+'\u0100'*9999
121 (+2237%) 121 (+2237%) 333 (+749%)  2828   encode  utf-32le  
'\U00010000'*10000
214 (+1108%) 214 (+1108%) 333 (+676%)  2585   encode  utf-32le    
'\U00010000'+'A'*9999
214 (+1112%) 214 (+1112%) 333 (+679%)  2594   encode  utf-32le    
'\U00010000'+'\x80'*9999
214 (+1208%) 214 (+1208%) 333 (+741%)  2799   encode  utf-32le    
'\U00010000'+'\u0100'*9999
214 (+1214%) 215 (+1208%) 333 (+745%)  2813   encode  utf-32le    
'\U00010000'+'\u8000'*9999

214 (+556%)  214 (+556%)  363 (+287%)  1404   encode  utf-32be  'A'*10000
214 (+558%)  214 (+558%)  363 (+288%)  1408   encode  utf-32be  '\x80'*10000
214 (+550%)  214 (+550%)  363 (+283%)  1390   encode  utf-32be    
'\x80'+'A'*9999
214 (+224%)  214 (+224%)  342 (+103%)  693    encode  utf-32be  '\u0100'*10000
214 (+229%)  214 (+229%)  343 (+105%)  703    encode  utf-32be    
'\u0100'+'A'*9999
214 (+221%)  214 (+221%)  342 (+101%)  688    encode  utf-32be    
'\u0100'+'\x80'*9999
214 (+224%)  214 (+224%)  342 (+103%)  694    encode  utf-32be  '\u8000'*10000
215 (+227%)  214 (+229%)  343 (+105%)  704    encode  utf-32be    
'\u8000'+'A'*9999
214 (+221%)  214 (+221%)  342 (+101%)  686    encode  utf-32be    
'\u8000'+'\x80'*9999
214 (+222%)  214 (+222%)  341 (+102%)  690    encode  utf-32be    
'\u8000'+'\u0100'*9999
121 (+387%)  121 (+387%)  333 (+77%)   589    encode  utf-32be  
'\U00010000'*10000
214 (+174%)  215 (+173%)  333 (+76%)   587    encode  utf-32be    
'\U00010000'+'A'*9999
214 (+183%)  214 (+183%)  333 (+82%)   606    encode  utf-32be    
'\U00010000'+'\x80'*9999
214 (+184%)  214 (+184%)  333 (+82%)   607    encode  utf-32be    
'\U00010000'+'\u0100'*9999
214 (+183%)  214 (+183%)  333 (+82%)   605    encode  utf-32be    
'\U00010000'+'\u8000'*9999

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15027>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to