Brett Cannon
cb66eb0dec
Issue #13959 : Deprecate imp.get_suffixes() for new attributes on
importlib.machinery that provide the suffix details for import.
The attributes were not put on imp so as to compartmentalize
everything importlib needs for setting up imports in
importlib.machinery.
This also led to an indirect deprecation of inspect.getmoduleinfo() as
it directly returned imp.get_suffix's returned tuple which no longer
makes sense.
14 years ago
Brett Cannon
810c64df8f
Issue #14764 : Update importlib.test.benchmark to work in a world where
import machinery is no longer implicit.
14 years ago
Brett Cannon
dfc32706a0
Make the benchmark recording more sensible for importlib.test.benchmark.
14 years ago
Brett Cannon
cae1068e82
Re-order importlib benchmarks to be consistent. Also print out what implementation of __import__ is used.
14 years ago
Brett Cannon
466e6a90f2
Have importlib.test.benchmark test with tabnanny as a medium-sized test.
14 years ago
Brett Cannon
5ea5b67a0b
Fix a minor output typo as found by Terry Reedy.
14 years ago
Brett Cannon
e3a9ae5ece
Let importlib.test.benchmark take a specific benchmark name to run.
14 years ago
Brett Cannon
190f33cd2b
Allow for the specification of a file to dump importlib benchmark
results to (and to compare against previous runs).
* * *
Move importlib.test.benchmark to argparse.
14 years ago
Brett Cannon
5db0c94072
Add importlib benchmarks which try to be "realistic" by importing the decimal
module which is the largest module in the stdlib.
16 years ago
Brett Cannon
cbe1a4e28f
Add comma grouping to max result so it's easier to read.
16 years ago
Brett Cannon
3b0a19eaba
Add benchmarks for importing just source w/o writing bytecode, importing source
while writing bytecode, and importing bytecode with source existing (don't care
about sourceless imports).
16 years ago
Brett Cannon
7b9bcb8411
Touch up comments and code along with outputting what the unit of measure is.
16 years ago
Brett Cannon
23cf5743ae
Rework importlib benchmarks so that they measure number of executions within a
second instead of some fixed number.
Keeps benchmark faster by putting a cap on total execution time. Before a run
using importlib took longer by some factor, but now it takes roughly the
same amount of time as using the built-in __import__.
17 years ago
Brett Cannon
6ae7a7d13d
Add simple tests for __import__ for future optimizations to importlib.
17 years ago