[Python-Dev] New stringbench benchmark results (original) (raw)

Victor 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