Yesudeep Mangalapilly | a4453c6 | 2011-08-11 12:03:37 +0530 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | echo "int2bytes speed test" |
| 4 | echo "python2.5" |
| 5 | python2.5 -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)' |
| 6 | python2.5 -mtimeit -s'from rsa.transform import old_int2bytes; n = 1<<4096' 'old_int2bytes(n)' |
| 7 | echo "python2.6" |
| 8 | python2.6 -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)' |
| 9 | python2.6 -mtimeit -s'from rsa.transform import old_int2bytes; n = 1<<4096' 'old_int2bytes(n)' |
| 10 | echo "python2.7" |
| 11 | python2.7 -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)' |
| 12 | python2.7 -mtimeit -s'from rsa.transform import old_int2bytes; n = 1<<4096' 'old_int2bytes(n)' |
| 13 | echo "python3.2" |
| 14 | python3 -mtimeit -s'from rsa.transform import int2bytes; n = 1<<4096' 'int2bytes(n)' |
| 15 | python3 -mtimeit -s'from rsa.transform import old_int2bytes; n = 1<<4096' 'old_int2bytes(n)' |