[pypy-issue] [issue1343] datetime constructors are slow

Gustavo Carneiro tracker at bugs.pypy.org
Thu Nov 29 14:38:34 CET 2012

New submission from Gustavo Carneiro <gjcarneiro at gmail.com>:

With pypy 2.0 beta1, I find that datetime.utcnow is much slower in PyPy than CPython.

import timeit
print timeit.Timer("datetime.datetime.utcnow()", "import datetime").timeit(10000000)
$ python /tmp/test.py 
$ pypy /tmp/test.py 

messages: 5049
nosy: gjc, pypy-issue
priority: performance bug
release: 2.0
status: unread
title: datetime constructors are slow

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list