diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-16 14:30:48 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-16 14:30:48 +0530 |
commit | 74f1e76d61d7a066653184273b87dea4ce6f1502 (patch) | |
tree | 828db6ba67a52aab6323981fbd7d0bfa5074e605 /speed.sh | |
parent | 7790c1a15383b8b82ed2746fe0b54c554c430829 (diff) | |
download | rsa-74f1e76d61d7a066653184273b87dea4ce6f1502.tar.gz |
Parellelized testing. Caught a lot of bugs.
Diffstat (limited to 'speed.sh')
-rwxr-xr-x | speed.sh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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" |