This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients mark.dickinson, pitrou, rhettinger, serhiy.storchaka, vstinner
Date 2015-02-23.08:29:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1424680174.29.0.00933656207472.issue23488@psf.upfronthosting.co.za>
In-reply-to
Content
Some microbenchmark results on 32-bit Linux:

$ ./python -m timeit -s "from random import getrandbits" -- "getrandbits(64)"
Before: 1000000 loops, best of 3: 1.41 usec per loop
After:  1000000 loops, best of 3: 1.34 usec per loop

$ ./python -m timeit -s "from random import getrandbits" -- "getrandbits(2048)"
Before: 100000 loops, best of 3: 5.84 usec per loop
After:  100000 loops, best of 3: 5.61 usec per loop

$ ./python -m timeit -s "from random import getrandbits" -- "getrandbits(65536)"
Before: 10000 loops, best of 3: 145 usec per loop
After:  10000 loops, best of 3: 137 usec per loop
History
Date User Action Args
2015-02-23 08:29:34serhiy.storchakasetrecipients: + serhiy.storchaka, rhettinger, mark.dickinson, pitrou, vstinner
2015-02-23 08:29:34serhiy.storchakasetmessageid: <1424680174.29.0.00933656207472.issue23488@psf.upfronthosting.co.za>
2015-02-23 08:29:34serhiy.storchakalinkissue23488 messages
2015-02-23 08:29:34serhiy.storchakacreate