Serhiy Storchaka <[email protected]> added the comment:
I think using the timeit module is enough. For more precise benchmarking you
may need to use the pyperf module, but I think this is not a case.
For example, something like:
./python -m timeit -s "from pathlib import Path; p = Patch('...')" "for x
in p.rglob('...'): pass"
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37935>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com