Am 27.02.2013 23:24, schrieb Terry Reedy: > On 2/27/2013 3:21 AM, jmfauth hijacked yet another thread: >> Some are building, some are destroying. > > We are still waiting for you to help build a better 3.3+, instead of > trying to 'destroy' it with mostly irrelevant cherry-picked benchmarks.
PEP 412 [1] causes a slow down in the dict instantiation code, see [2]. $ for PY in python2.7 python3.2 python3.3 ./python; do cmd="$PY -R -m timeit -n 10000000 '{};{};{};{};{};{};{};{};{};{}'"; echo $cmd; eval $cmd; done python2.7 -R -m timeit -n 10000000 '{};{};{};{};{};{};{};{};{};{}' 10000000 loops, best of 3: 0.163 usec per loop python3.2 -R -m timeit -n 10000000 '{};{};{};{};{};{};{};{};{};{}' 10000000 loops, best of 3: 0.139 usec per loop python3.3 -R -m timeit -n 10000000 '{};{};{};{};{};{};{};{};{};{}' 10000000 loops, best of 3: 0.663 usec per loop ./python -R -m timeit -n 10000000 '{};{};{};{};{};{};{};{};{};{}' 10000000 loops, best of 3: 0.382 usec per loop (./python is a patched 3.3 dev version) Christian [1] http://www.python.org/dev/peps/pep-0412/ [2] http://bugs.python.org/issue16465 -- http://mail.python.org/mailman/listinfo/python-list