Benchmarks for CPython

2019-08-05 02:11发布

问题:

I'm investigating a potential change in the CPython code base which I'm hoping may provide some performance benefits. However, though there are plenty of functionality tests in the build system, I can find nothing to do with performance testing.

I would think that this would be ideal in order to check both whether:

  • any proposed performance improvements actually deliver what they intend; and
  • whether any functionality changes cause serious performance issues.

Have I missed something in the repo, or is there a performance test somewhere else that I should be using?

I have no issue with building my own performance tests if need be (and delivering them into CPython if they're considered useful), I just wanted to ensure I wasn't duplicating effort unnecessarily.

回答1:

Python's Mercurial server has some basic benchmarks available as a repo. The README contains some basic info on them.