summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-07-20 18:54:53 (GMT)
committerBrett Cannon <brett@python.org>2012-07-20 18:54:53 (GMT)
commitd382bfc921b4f3c445240b99d6853fe97349b225 (patch)
tree4fe81ff69ec32c84a94a39ab400d08c6f4de3274
parent45a5e3afe52ed89f298242143c5f7e2bb992ac63 (diff)
downloadcpython-d382bfc921b4f3c445240b99d6853fe97349b225.zip
cpython-d382bfc921b4f3c445240b99d6853fe97349b225.tar.gz
cpython-d382bfc921b4f3c445240b99d6853fe97349b225.tar.bz2
Move importlib.test.benchmark to Tools/importbench to make it more
visible and to place it with other micro-benchmarks (e.g. stringbench).
-rw-r--r--Misc/NEWS2
-rw-r--r--Tools/importbench/README6
-rw-r--r--Tools/importbench/importbench.py (renamed from Lib/test/test_importlib/benchmark.py)4
3 files changed, 10 insertions, 2 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 48877fe..c2b9563 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -154,6 +154,8 @@ Extension Modules
Tools/Demos
-----------
+- Move importlib.test.benchmark to Tools/importbench.
+
- Issue #12605: The gdb hooks for debugging CPython (within Tools/gdb) have
been enhanced to show information on more C frames relevant to CPython within
the "py-bt" and "py-bt-full" commands:
diff --git a/Tools/importbench/README b/Tools/importbench/README
new file mode 100644
index 0000000..81a5544
--- /dev/null
+++ b/Tools/importbench/README
@@ -0,0 +1,6 @@
+Importbench is a set of micro-benchmarks for various import scenarios.
+
+It should not be used as an overall benchmark of import performance, but rather
+an easy way to measure impact of possible code changes. For a real-world
+benchmark of import, use the normal_startup benchmark from
+hg.python.org/benchmarks.
diff --git a/Lib/test/test_importlib/benchmark.py b/Tools/importbench/importbench.py
index 183e818..714c0e4 100644
--- a/Lib/test/test_importlib/benchmark.py
+++ b/Tools/importbench/importbench.py
@@ -4,8 +4,8 @@ The assumption is made that this benchmark is run in a fresh interpreter and
thus has no external changes made to import-related attributes in sys.
"""
-from . import util
-from .source import util as source_util
+from test.test_importlib import util
+from test.test_importlib.source import util as source_util
import decimal
import imp
import importlib