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

Commit

Permalink
sage_setup.find.find_python_sources: Add benchmark doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 29, 2020
1 parent d62da15 commit 06a3609
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/sage_setup/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'...], [])
Expand Down

0 comments on commit 06a3609

Please sign in to comment.