gh-93096: Move `random` benchmark into pyperformance by donbarbos · Pull Request #131144 · python/cpython

@donbarbos

@donbarbos donbarbos commented

Mar 12, 2025

edited by bedevere-app bot

Loading

@donbarbos

@donbarbos

vstinner

@donbarbos

vstinner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rhettinger

This isn't a performance test. It is used by module maintainers to view generated distributions to see if they match the expected distributions.

@donbarbos

I think it would be right to get rid of the --test flags in modules with cli.
This flag is not documented and is not displayed in the --help output.

And it seems author of this flag is not against removing it

@rhettinger

I'm going to decline this. It isn't part of the public API so there is no user benefit to removing it. I do use this when maintaining the module so it does have some value. And the test code has nothing to do with pyperformance so this PR would be moving the code from where a mainainer can find it to a place where it clearly doesn't make sense.