[pypy-issue] [issue1374] AES encryption/decryption slower than cPython

George Sakkis tracker at bugs.pypy.org
Sat Jan 19 20:35:43 CET 2013

New submission from George Sakkis <george.sakkis at gmail.com>:

I'm in the middle of porting some existing crypto code from M2Crypto to pycrypto
so that it can run on PyPy. Unfortunately it looks like that at least on my
benchmark script (see attached) the pycrypto performance on PyPy is worse than
the respective on cPython and almost 3x slower than M2Crypto:

$ python --version
Python 2.7.3

$ python aes.py
pycrypto: 10.25s
M2Crypto: 6.09s

$ pypy --version
Python 2.7.3 (7e4f0faa3d51, Nov 16 2012, 15:53:25)
[PyPy 2.0.0-beta1 with GCC 4.6.3]

$ pypy aes.py
pycrypto: 16.54s

Is it a known limitation or am I doing something wrong?

files: aes.py
messages: 5177
nosy: gsakkis, pypy-issue
priority: performance bug
status: unread
title: AES encryption/decryption slower than cPython

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

More information about the pypy-issue mailing list