[Python-Dev] New stringbench benchmark results (original) (raw)
Victor Stinner victor.stinner at haypocalc.com
Fri Oct 7 17:36:05 CEST 2011
- Previous message: [Python-Dev] New stringbench benchmark results
- Next message: [Python-Dev] New stringbench benchmark results
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [Python-Dev] New stringbench benchmark results
- Next message: [Python-Dev] New stringbench benchmark results
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]