[pypy-issue] [issue1477] datetime issues in CPython vs PyPy

Amaury Forgeot d Arc tracker at bugs.pypy.org
Tue May 7 08:36:02 CEST 2013


Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

datetime is a C module in CPython, but a pure-Python module in PyPy.
This makes a huge difference for CProfile, which traces Python code and not C functions...

timeit yields very different results: pypy is twice faster than CPython2.7!

python -m timeit -s "import datetime; startTime=datetime.datetime.now()" "datetime.datetime.now() < (startTime + 
datetime.timedelta(minutes=2))"

----------
nosy: +amaury
status: unread -> chatting

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1477>
________________________________________


More information about the pypy-issue mailing list