Serhiy Storchaka <storch...@gmail.com> added the comment: Here are the benchmark results (numbers are speed, MB/s).
On 32-bit Linux, AMD Athlon 64 X2: vanilla patched utf-8 'A'*10000 2016 (+5%) 2111 utf-8 '\x80'*10000 383 (+9%) 416 utf-8 '\x80'+'A'*9999 1283 (+1%) 1301 utf-8 '\u0100'*10000 383 (-8%) 354 utf-8 '\u0100'+'A'*9999 1258 (-6%) 1184 utf-8 '\u0100'+'\x80'*9999 383 (-8%) 354 utf-8 '\u8000'*10000 434 (-11%) 388 utf-8 '\u8000'+'A'*9999 1262 (-6%) 1180 utf-8 '\u8000'+'\x80'*9999 383 (-8%) 354 utf-8 '\u8000'+'\u0100'*9999 383 (-8%) 354 utf-8 '\U00010000'*10000 358 (+1%) 361 utf-8 '\U00010000'+'A'*9999 1168 (-5%) 1104 utf-8 '\U00010000'+'\x80'*9999 382 (-20%) 307 utf-8 '\U00010000'+'\u0100'*9999 382 (-20%) 307 utf-8 '\U00010000'+'\u8000'*9999 404 (-10%) 365 On 32-bit Linux, Intel Atom N570: vanilla patched ascii 'A'*10000 789 (+1%) 800 latin1 'A'*10000 796 (-2%) 781 latin1 'A'*9999+'\x80' 779 (+1%) 789 latin1 '\x80'*10000 1739 (-3%) 1690 latin1 '\x80'+'A'*9999 1747 (+1%) 1773 utf-8 'A'*10000 623 (+1%) 631 utf-8 '\x80'*10000 145 (+14%) 165 utf-8 '\x80'+'A'*9999 354 (+1%) 358 utf-8 '\u0100'*10000 164 (-5%) 156 utf-8 '\u0100'+'A'*9999 343 (+2%) 350 utf-8 '\u0100'+'\x80'*9999 164 (-4%) 157 utf-8 '\u8000'*10000 175 (-5%) 166 utf-8 '\u8000'+'A'*9999 349 (+2%) 356 utf-8 '\u8000'+'\x80'*9999 164 (-4%) 157 utf-8 '\u8000'+'\u0100'*9999 164 (-4%) 157 utf-8 '\U00010000'*10000 152 (+7%) 163 utf-8 '\U00010000'+'A'*9999 313 (+6%) 332 utf-8 '\U00010000'+'\x80'*9999 161 (-13%) 140 utf-8 '\U00010000'+'\u0100'*9999 161 (-14%) 139 utf-8 '\U00010000'+'\u8000'*9999 160 (-1%) 159 ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8271> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com