summaryrefslogtreecommitdiff
path: root/speed.sh
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-12 13:12:06 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-12 13:12:06 +0530
commit3780830bae12d3f2f6f6145eb62727cadf734928 (patch)
tree24b40269222d279bd6d4041df140ce1ec1505c8d /speed.sh
parentb7341b658d6d2285676ce0b3c287383ad69a293e (diff)
downloadrsa-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-xspeed.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/speed.sh b/speed.sh
index a9a1431..a2c4014 100755
--- a/speed.sh
+++ b/speed.sh
@@ -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)'