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 pitrou, serhiy.storchaka, tim.peters, vstinner
Date 2013-11-14.16:59:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1384448390.37.0.418017122061.issue19581@psf.upfronthosting.co.za>
In-reply-to
Content
> Did you find a difference for small strings vs. large strings?

When I replaced PyAccu with PyUnicodeWriter for str%args and str.format(args), I ran a lot of benchmarks with short, medium and large strings. See for example:
http://bugs.python.org/file25687/REPORT_64BIT_2.7_3.2_writer

See issues #14716 and #14744 for old benchmark results. If I remember correctly, this is the script used to run the benchmark:

https://bitbucket.org/haypo/misc/src/7c2deb7a37353b41a45564ce6a98e07bbe0c691b/python/bench_str.py

The script should be run using:

https://bitbucket.org/haypo/misc/src/7c2deb7a37353b41a45564ce6a98e07bbe0c691b/python/benchmark.py?at=default

I was concerned by performances on short strings because most calls to str%args are short strings.
History
Date User Action Args
2013-11-14 16:59:50vstinnersetrecipients: + vstinner, tim.peters, pitrou, serhiy.storchaka
2013-11-14 16:59:50vstinnersetmessageid: <1384448390.37.0.418017122061.issue19581@psf.upfronthosting.co.za>
2013-11-14 16:59:50vstinnerlinkissue19581 messages
2013-11-14 16:59:50vstinnercreate