This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Arfrever, asvetlov, loewis, pitrou, serhiy.storchaka, vstinner
Date 2012-04-23.21:01:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335214143.3101.240.camel@raxxla>
In-reply-to <1334869141.17.0.802149162715.issue14624@psf.upfronthosting.co.za>
Content
Here are the results of benchmarking (numbers in MB/s).

On 32-bit Linux, AMD Athlon 64 X2 4600+ @ 2.4GHz:

                                          Py2.7        Py3.2        Py3.3       patch

utf-16le  'A'*10000                       504 (+282%)  1905 (+1%)   565 (+241%)  1927
utf-16le  '\x80'*10000                    503 (+264%)  1894 (-3%)   417 (+340%)  1833
utf-16le    '\x80'+'A'*9999               504 (+264%)  1890 (-3%)   422 (+335%)  1834
utf-16le  '\u0100'*10000                  503 (+249%)  1896 (-7%)   357 (+391%)  1754
utf-16le    '\u0100'+'A'*9999             504 (+252%)  1896 (-6%)   360 (+393%)  1776
utf-16le    '\u0100'+'\x80'*9999          503 (+249%)  1890 (-7%)   357 (+392%)  1756
utf-16le  '\u8000'*10000                  503 (-18%)   355 (+16%)   75 (+449%)   412
utf-16le    '\u8000'+'A'*9999             504 (+254%)  1892 (-6%)   359 (+397%)  1783
utf-16le    '\u8000'+'\x80'*9999          503 (+249%)  1896 (-7%)   357 (+392%)  1755
utf-16le    '\u8000'+'\u0100'*9999        503 (+258%)  1901 (-5%)   359 (+402%)  1802
utf-16le  '\U00010000'*10000              484 (-14%)   379 (+9%)    103 (+303%)  415
utf-16le    '\U00010000'+'A'*9999         504 (+244%)  1905 (-9%)   353 (+392%)  1735
utf-16le    '\U00010000'+'\x80'*9999      503 (+245%)  1899 (-9%)   348 (+398%)  1733
utf-16le    '\U00010000'+'\u0100'*9999    503 (+244%)  1882 (-8%)   348 (+397%)  1729
utf-16le    '\U00010000'+'\u8000'*9999    503 (-18%)   355 (+16%)   71 (+482%)   413

utf-16be  'A'*10000                       504 (+284%)  1553 (+24%)  469 (+312%)  1933
utf-16be  '\x80'*10000                    504 (+251%)  1551 (+14%)  387 (+357%)  1770
utf-16be    '\x80'+'A'*9999               504 (+261%)  1549 (+17%)  386 (+371%)  1819
utf-16be  '\u0100'*10000                  503 (+175%)  1544 (-10%)  333 (+316%)  1384
utf-16be    '\u0100'+'A'*9999             505 (+178%)  1548 (-9%)   335 (+319%)  1403
utf-16be    '\u0100'+'\x80'*9999          503 (+179%)  1552 (-9%)   336 (+318%)  1405
utf-16be  '\u8000'*10000                  503 (-2%)    415 (+19%)   75 (+559%)   494
utf-16be    '\u8000'+'A'*9999             504 (+179%)  1551 (-9%)   335 (+320%)  1408
utf-16be    '\u8000'+'\x80'*9999          504 (+178%)  1551 (-10%)  336 (+317%)  1402
utf-16be    '\u8000'+'\u0100'*9999        504 (+179%)  1549 (-9%)   336 (+318%)  1404
utf-16be  '\U00010000'*10000              483 (-7%)    407 (+10%)   105 (+326%)  447
utf-16be    '\U00010000'+'A'*9999         504 (+149%)  1554 (-19%)  317 (+295%)  1253
utf-16be    '\U00010000'+'\x80'*9999      503 (+153%)  1543 (-17%)  317 (+302%)  1275
utf-16be    '\U00010000'+'\u0100'*9999    503 (+153%)  1537 (-17%)  317 (+302%)  1274
utf-16be    '\U00010000'+'\u8000'*9999    503 (-2%)    415 (+19%)   71 (+597%)   495

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

                                          Py2.7        Py3.2        Py3.3       patch

utf-16le  'A'*10000                       136 (+417%)  584 (+20%)   184 (+282%)  703
utf-16le  '\x80'*10000                    136 (+392%)  580 (+15%)   160 (+318%)  669
utf-16le    '\x80'+'A'*9999               136 (+398%)  582 (+16%)   159 (+326%)  677
utf-16le  '\u0100'*10000                  137 (+346%)  583 (+5%)    129 (+374%)  611
utf-16le    '\u0100'+'A'*9999             136 (+358%)  582 (+7%)    129 (+383%)  623
utf-16le    '\u0100'+'\x80'*9999          136 (+348%)  580 (+5%)    129 (+372%)  609
utf-16le  '\u8000'*10000                  136 (+18%)   127 (+27%)   38 (+324%)   161
utf-16le    '\u8000'+'A'*9999             136 (+357%)  582 (+7%)    129 (+382%)  622
utf-16le    '\u8000'+'\x80'*9999          136 (+351%)  581 (+6%)    128 (+380%)  614
utf-16le    '\u8000'+'\u0100'*9999        136 (+349%)  581 (+5%)    129 (+374%)  611
utf-16le  '\U00010000'*10000              153 (-3%)    140 (+6%)    53 (+181%)   149
utf-16le    '\U00010000'+'A'*9999         136 (+296%)  581 (-7%)    131 (+311%)  538
utf-16le    '\U00010000'+'\x80'*9999      136 (+289%)  584 (-9%)    131 (+304%)  529
utf-16le    '\U00010000'+'\u0100'*9999    136 (+290%)  579 (-8%)    130 (+308%)  530
utf-16le    '\U00010000'+'\u8000'*9999    136 (+25%)   128 (+33%)   38 (+347%)   170

utf-16be  'A'*10000                       136 (+331%)  441 (+33%)   166 (+253%)  586
utf-16be  '\x80'*10000                    136 (+309%)  440 (+26%)   145 (+283%)  556
utf-16be    '\x80'+'A'*9999               136 (+312%)  442 (+27%)   145 (+286%)  560
utf-16be  '\u0100'*10000                  136 (+231%)  441 (+2%)    120 (+275%)  450
utf-16be    '\u0100'+'A'*9999             136 (+232%)  442 (+2%)    120 (+276%)  451
utf-16be    '\u0100'+'\x80'*9999          136 (+231%)  438 (+3%)    119 (+278%)  450
utf-16be  '\u8000'*10000                  136 (+22%)   127 (+31%)   38 (+337%)   166
utf-16be    '\u8000'+'A'*9999             136 (+232%)  439 (+3%)    120 (+276%)  451
utf-16be    '\u8000'+'\x80'*9999          136 (+230%)  439 (+2%)    120 (+274%)  449
utf-16be    '\u8000'+'\u0100'*9999        136 (+232%)  439 (+3%)    120 (+276%)  451
utf-16be  '\U00010000'*10000              153 (-1%)    139 (+9%)    52 (+192%)   152
utf-16be    '\U00010000'+'A'*9999         136 (+211%)  440 (-4%)    121 (+250%)  423
utf-16be    '\U00010000'+'\x80'*9999      136 (+210%)  440 (-4%)    122 (+246%)  422
utf-16be    '\U00010000'+'\u0100'*9999    136 (+210%)  441 (-5%)    121 (+248%)  421
utf-16be    '\U00010000'+'\u8000'*9999    136 (+27%)   128 (+35%)   38 (+355%)   173
Files
File name Uploaded
bench-diff.py serhiy.storchaka, 2012-04-23.21:01:19
decodebench.py serhiy.storchaka, 2012-04-23.21:01:18
History
Date User Action Args
2012-04-23 21:01:20serhiy.storchakasetrecipients: + serhiy.storchaka, loewis, pitrou, vstinner, Arfrever, asvetlov
2012-04-23 21:01:19serhiy.storchakalinkissue14624 messages
2012-04-23 21:01:19serhiy.storchakacreate