diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-12 13:12:06 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-12 13:12:06 +0530 |
commit | 3780830bae12d3f2f6f6145eb62727cadf734928 (patch) | |
tree | 24b40269222d279bd6d4041df140ce1ec1505c8d /speed.sh | |
parent | b7341b658d6d2285676ce0b3c287383ad69a293e (diff) | |
download | rsa-3780830bae12d3f2f6f6145eb62727cadf734928.tar.gz |
Completes machine-aligned int2bytes implementation.
* This implementation is generally in microseconds
instead of milliseconds, which makes it 20x-40x faster
than the older implementation. Tests for all of the behavior
of the function have been added to tests/test_transform.py.
Hope this helps make python-rsa even better. =)
Diffstat (limited to 'speed.sh')
-rwxr-xr-x | speed.sh | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -13,4 +13,7 @@ python2.7 -mtimeit -s'from rsa.transform import _int2bytes; n = 1<<4096' '_int2b echo "python3.2" python3 -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)' python3 -mtimeit -s'from rsa.transform import _int2bytes; n = 1<<4096' '_int2bytes(n)' +echo "pypy" +pypy -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)' +pypy -mtimeit -s'from rsa.transform import _int2bytes; n = 1<<4096' '_int2bytes(n)' |