Amaury Forgeot d Arc <[email protected]> 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 <[email protected]>
<https://bugs.pypy.org/issue1477>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to