Serhiy Storchaka <storchaka+cpyt...@gmail.com> 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 <rep...@bugs.python.org> <https://bugs.python.org/issue37935> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com