This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients bmwiedemann, christian.heimes, vstinner
Date 2017-05-05.16:42:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1494002562.85.0.674351292147.issue30276@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2017-05-05 16:42:42vstinnersetrecipients: + vstinner, christian.heimes, bmwiedemann
2017-05-05 16:42:42vstinnersetmessageid: <1494002562.85.0.674351292147.issue30276@psf.upfronthosting.co.za>
2017-05-05 16:42:42vstinnerlinkissue30276 messages
2017-05-05 16:42:42vstinnercreate