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 abo
Recipients abo, mark.dickinson, rhettinger
Date 2021-01-28.06:41:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1611816097.56.0.198466288688.issue43040@roundup.psfhosted.org>
In-reply-to
Content
Some points to note;

I first noticed this as an apparently 5x performance regression for randrange() between pypy and pypy3. This seemed pretty significant, but admittedly the difference is largely masked by other python overheads when comparing python2 and python3.

When I mentioned random() is faster, I meant that python2's implementation of randrange() that uses random() under the hood was noticeably faster than python3's randrange() that uses getrandbits() under the hood.

I know getrandbits() is significantly faster than randrange(), but randrange() doesn't have to be that bad.

However, I agree that changing repeatability is potentially a big issue.
History
Date User Action Args
2021-01-28 06:41:37abosetrecipients: + abo, rhettinger, mark.dickinson
2021-01-28 06:41:37abosetmessageid: <1611816097.56.0.198466288688.issue43040@roundup.psfhosted.org>
2021-01-28 06:41:37abolinkissue43040 messages
2021-01-28 06:41:37abocreate