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 vstinner
Recipients loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2012-05-23.21:20:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337808036.28.0.556921289864.issue14744@psf.upfronthosting.co.za>
In-reply-to
Content
Because I don't know what should be tested, I wrote a lot a tests in the bench_str.py script. To run the benchmark, use:

./python benchmark.py --file=FILE script bench_str.py

Then to compare results:

./python benchmark.py compare_to FILE1 FILE2 FILE3 ...

Download scripts from:
https://bitbucket.org/haypo/misc/src/tip/python/benchmark.py
https://bitbucket.org/haypo/misc/src/tip/python/bench_str.py

(I wrote the benchmark.py tool for this issue, it's a a generic tool to create and compare benchmarks.)

I attached results on 32 and 64 bits.

 * Python 2.7 vs 3.2 vs 3.3 (faster-format branch): REPORT_32BIT_2.7_3.2_writer and REPORT_64BIT_2.7_3.2_writer
 * Python 3.3, UCS4 buffer vs PyAccu vs _PyUnicodeWriter: REPORT_32BIT_3.3 and REPORT_64BIT_3.3
History
Date User Action Args
2012-05-23 21:20:36vstinnersetrecipients: + vstinner, loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka
2012-05-23 21:20:36vstinnersetmessageid: <1337808036.28.0.556921289864.issue14744@psf.upfronthosting.co.za>
2012-05-23 21:20:35vstinnerlinkissue14744 messages
2012-05-23 21:20:35vstinnercreate