STINNER Victor added the comment: I ran a quick benchmark on my laptop, Fedora 25:
haypo@selma$ python3 -m perf command -o ref.json -- python3 -c 'pass' && python3 -m perf command -o hashlib.json -- python3 -c 'import hashlib' && python3 -m perf compare_to ref.json hashlib.json --table +-----------+---------+------------------------------+ | Benchmark | ref | hashlib | +===========+=========+==============================+ | command | 26.7 ms | 30.2 ms: 1.13x slower (+13%) | +-----------+---------+------------------------------+ Importing hashlib only takes 3.5 ms on my laptop. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30276> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com