STINNER Victor <victor.stin...@gmail.com> added the comment: Results on 32 bits (Intel Core i5 CPU 661 @ 3.33GHz) on Linux 3.0 with a new patch.
Python 3.2: 10000000 loops, best of 3: 0.133 usec per loop 100000 loops, best of 3: 4.64 usec per loop 1000000 loops, best of 3: 0.637 usec per loop 1000000 loops, best of 3: 0.364 usec per loop Python 3.3 @ 1439e2d1f490 (before my first optimization on str%tuple): 10000000 loops, best of 3: 0.193 usec per loop 100000 loops, best of 3: 10.1 usec per loop 1000000 loops, best of 3: 0.838 usec per loop 1000000 loops, best of 3: 0.825 usec per loop Python 3.3 + patch, overallocate 50%: 10000000 loops, best of 3: 0.15 usec per loop 100000 loops, best of 3: 8.27 usec per loop 1000000 loops, best of 3: 0.527 usec per loop 1000000 loops, best of 3: 0.566 usec per loop Python 3.3 + patch, overallocate 25%: 10000000 loops, best of 3: 0.142 usec per loop 100000 loops, best of 3: 7.93 usec per loop 1000000 loops, best of 3: 0.532 usec per loop 1000000 loops, best of 3: 0.546 usec per loop I'm going to commit the new patch with an overallocation of 25%. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14687> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com