Author vstinner
Recipients dilettant, ethan.furman, inada.naoki, python-dev, rhettinger, serhiy.storchaka, vstinner
Date 2016-09-10.07:05:46
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473491147.03.0.62248228542.issue27350@psf.upfronthosting.co.za>
In-reply-to
Content
As I expected, a dictionary lookup is a _little bit_ slower (3%) between Python 3.5 and Python 3.6:

$ ./python -m perf timeit -s 'd={str(i):i for i in range(100)}' 'd["10"]; d["20"]; d["30"]; d["40"]; d["50"]; d["10"]; d["20"]; d["30"]; d["40"]; d["50"]' --rigorous

Median +- std dev: [lookup35] 309 ns +- 10 ns -> [lookup36] 320 ns +- 8 ns: 1.03x slower
History
Date User Action Args
2016-09-10 07:05:47vstinnersetrecipients: + vstinner, rhettinger, inada.naoki, ethan.furman, python-dev, serhiy.storchaka, dilettant
2016-09-10 07:05:47vstinnersetmessageid: <1473491147.03.0.62248228542.issue27350@psf.upfronthosting.co.za>
2016-09-10 07:05:47vstinnerlinkissue27350 messages
2016-09-10 07:05:46vstinnercreate