]> granicus.if.org Git - python/commit
Rework importlib benchmarks so that they measure number of executions within a
authorBrett Cannon <bcannon@gmail.com>
Thu, 3 Sep 2009 20:45:21 +0000 (20:45 +0000)
committerBrett Cannon <bcannon@gmail.com>
Thu, 3 Sep 2009 20:45:21 +0000 (20:45 +0000)
commit23cf5743aef2b8c2baa023ec3f7493c7e139027a
tree67ffe3ee5cd280302c58e3e895c3f22dff9aeb28
parentf31f7bb1a7d217f5cb30643b34d09c6dd0719f32
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__.
Lib/importlib/test/benchmark.py