A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2011-October/113951.html below:

[Python-Dev] New stringbench benchmark results

[Python-Dev] New stringbench benchmark results [Python-Dev] New stringbench benchmark resultsVictor Stinner victor.stinner at haypocalc.com
Fri Oct 7 17:36:05 CEST 2011
Le 06/10/2011 12:42, Victor Stinner a écrit :
> "A".join(["Bob"]*100)): 0.92 =>  2.11

I just optimized PyUnicode_Join() for such dummy benchmark. It's now 
1.2x slower instead of 2.3x slower on this dummy benchmark.

With longer *ASCII* strings, Python 3.3 is now 2x (narrow 3.2) or 4x 
(wide 3.2) faster than Python 3.2. For example with this micro-benchmark:

./python -m timeit 'x=["x"*500]*5000; y="\n"; z=y.join' 'z(x)'

Victor
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4