Benchmark importing all standard library modules
Note this will change if we add or remove modules from the standard library. We could alternatively hardcode a list of standard library modules.
As a user, I definitely care about stdlib import time, so in my mind that was maybe more of a feature. But maybe instead we should make this test import a few version-pinned popular third party dependencies; this will reduce noise from incidental changes and weight in favour of stdlib modules that are widely used.
You make some good points. I think there's a couple of different frames of reference here. If the goal is "how fast is CPython at importing all this code?", copying the code makes sense. If the goal is "how fast does the stdlib take to import for CPython version X.Y", this PR as-is makes a lot of sense. I suppose as long as we document what it's good for to avoid confusion, that's fine. (We don't really have a good place to document those kind of things yet, but a comment in the run_benchmark.py would be good enough for now).