[Python-Dev] New stringbench benchmark results (original) (raw)
Victor Stinner victor.stinner at haypocalc.com
Thu Oct 6 12:42:26 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 ]
Hum, copy-paste failure, I wrote numbers in the wrong order, it's:
(test: Python 3.2 => Python 3.3) "A".join(["Bob"]*100)): 0.92 => 2.11 ("C"+"AB"*300).rfind("CA"): 0.57 => 1.03 ("A" + ("Z"1281024)).replace("A", "BB", 1): 0.25 => 0.50
I improved str.replace(): it's now 5 times faster instead of 2 times slower for this specific benchmark :-) (or 10 times faster in Python 3.3 before/after my patch)
Victor
- Previous message: [Python-Dev] New stringbench benchmark results
- Next message: [Python-Dev] New stringbench benchmark results
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]