summaryrefslogtreecommitdiff
path: root/speed.sh
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-16 14:30:48 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-16 14:30:48 +0530
commit74f1e76d61d7a066653184273b87dea4ce6f1502 (patch)
tree828db6ba67a52aab6323981fbd7d0bfa5074e605 /speed.sh
parent7790c1a15383b8b82ed2746fe0b54c554c430829 (diff)
downloadrsa-74f1e76d61d7a066653184273b87dea4ce6f1502.tar.gz
Parellelized testing. Caught a lot of bugs.
Diffstat (limited to 'speed.sh')
-rwxr-xr-xspeed.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/speed.sh b/speed.sh
index 02aeb25..a57a527 100755
--- a/speed.sh
+++ b/speed.sh
@@ -1,6 +1,9 @@
#!/bin/sh
echo "int2bytes speed test"
+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)'
echo "python2.5"
python2.5 -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)'
python2.5 -mtimeit -s'from rsa.transform import _int2bytes; n = 1<<4096' '_int2bytes(n)'
@@ -13,9 +16,6 @@ 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)'
echo "bit_size speed test"
echo "python2.5"