summaryrefslogtreecommitdiff
path: root/speed.sh
Commit message (Collapse)AuthorAgeFilesLines
* Parellelized testing. Caught a lot of bugs.Yesudeep Mangalapilly2011-08-161-3/+3
|
* Adds speed tests for bit_size.Yesudeep Mangalapilly2011-08-121-0/+17
| | | | | | * bit_size is at least 28x faster than the original implementation and generally fares in and around 10 microseconds where as the older one does around 1.8 milliseconds.
* Completes machine-aligned int2bytes implementation.Yesudeep Mangalapilly2011-08-121-0/+3
| | | | | | | | | * 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. =)
* Adds verification tests for int2bytes and bytes2intYesudeep Mangalapilly2011-08-121-5/+6
| | | | | | | | | * There is a bug in the older int2bytes implementation. I've raised an issue on bitbucket for that already. #11 The pkcs1 file verification test fails if the behavior for int2bytes is corrected.
* Adds speed tests for int2bytes and old_int2bytes.Yesudeep Mangalapilly2011-08-111-0/+15
* In the following tests, the first speed test for each version of Python checked is the new implementation and the second is the old implementation. $ ./speed.sh int2bytes speed test python2.5 1000 loops, best of 3: 315 usec per loop 100 loops, best of 3: 4.87 msec per loop python2.6 10000 loops, best of 3: 170 usec per loop 100 loops, best of 3: 3.34 msec per loop python2.7 10000 loops, best of 3: 169 usec per loop 100 loops, best of 3: 2.8 msec per loop python3.2 10000 loops, best of 3: 169 usec per loop 100 loops, best of 3: 3.16 msec per loop