From 74f1e76d61d7a066653184273b87dea4ce6f1502 Mon Sep 17 00:00:00 2001 From: Yesudeep Mangalapilly Date: Tue, 16 Aug 2011 14:30:48 +0530 Subject: Parellelized testing. Caught a lot of bugs. --- speed.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'speed.sh') 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" -- cgit v1.2.1