[issue14687] Optimize str%tuple for the PEP 393

Antoine Pitrou report at bugs.python.org
Thu May 3 23:34:58 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> Python 3.3 @ 1439e2d1f490:
> 
> 1000000 loops, best of 3: 0.265 usec per loop
> 100000 loops, best of 3: 11 usec per loop
> 1000000 loops, best of 3: 0.961 usec per loop
> 1000000 loops, best of 3: 0.924 usec per loop
> 
> Python 3.3 @ cdc4e0f8135d:
> 
> 10000000 loops, best of 3: 0.154 usec per loop
> 100000 loops, best of 3: 7.85 usec per loop
> 1000000 loops, best of 3: 0.583 usec per loop
> 1000000 loops, best of 3: 0.535 usec per loop

Very nice, thank you!

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14687>
_______________________________________


More information about the Python-bugs-list mailing list