Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 06a3609

Browse files
author
Matthias Koeppe
committed
sage_setup.find.find_python_sources: Add benchmark doctest
1 parent d62da15 commit 06a3609

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/sage_setup/find.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,11 @@ def find_python_sources(src_dir, modules=['sage'], distributions=None):
121121
122122
sage: timeit('find_python_sources(SAGE_SRC)', # random output
123123
....: number=1, repeat=1)
124-
1 loops, best of 1: 18.8 ms per loop
124+
1 loops, best of 1: 30 ms per loop
125+
126+
sage: timeit('find_python_sources(SAGE_SRC, distributions=[""])', # random output
127+
....: number=1, repeat=1)
128+
1 loops, best of 1: 850 ms per loop
125129
126130
sage: find_python_sources(SAGE_SRC, modules=['sage_setup'])
127131
(['sage_setup', ...], [...'sage_setup.find'...], [])

0 commit comments

Comments
 (0)