From 06a360974cc56699a85f291494a493fed041dbc9 Mon Sep 17 00:00:00 2001 From: Matthias Koeppe Date: Mon, 29 Jun 2020 12:19:45 -0700 Subject: [PATCH] sage_setup.find.find_python_sources: Add benchmark doctest --- src/sage_setup/find.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sage_setup/find.py b/src/sage_setup/find.py index 93cfe65eddb..0dd54fc1f9b 100644 --- a/src/sage_setup/find.py +++ b/src/sage_setup/find.py @@ -121,7 +121,11 @@ def find_python_sources(src_dir, modules=['sage'], distributions=None): sage: timeit('find_python_sources(SAGE_SRC)', # random output ....: number=1, repeat=1) - 1 loops, best of 1: 18.8 ms per loop + 1 loops, best of 1: 30 ms per loop + + sage: timeit('find_python_sources(SAGE_SRC, distributions=[""])', # random output + ....: number=1, repeat=1) + 1 loops, best of 1: 850 ms per loop sage: find_python_sources(SAGE_SRC, modules=['sage_setup']) (['sage_setup', ...], [...'sage_setup.find'...], [])