Author inada.naoki
Recipients inada.naoki
Date 2020-07-29.00:50:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1595983851.73.0.0947059112265.issue41431@roundup.psfhosted.org>
In-reply-to
Content
Microbenchmark for commit cf4f61ce50e07f7ccd3aef991647050c8da058f9.

# timeit -s 'd=dict.fromkeys(range(8))' -- 'dict(d)'
Mean +- std dev: [master] 311 ns +- 2 ns -> [patched] 144 ns +- 1 ns: 2.16x faster (-54%)

# timeit -s 'd=dict.fromkeys(range(1000))' -- 'dict(d)'
Mean +- std dev: [master] 21.6 us +- 0.2 us -> [patched] 7.67 us +- 0.09 us: 2.81x faster (-64%)

# timeit -s 'd=dict.fromkeys(range(8))' -- '{}.update(d)'
Mean +- std dev: [master] 301 ns +- 5 ns -> [patched] 149 ns +- 1 ns: 2.01x faster (-50%)

# timeit -s 'd=dict.fromkeys(range(1000))' -- '{}.update(d)'
Mean +- std dev: [master] 21.4 us +- 0.2 us -> [patched] 7.64 us +- 0.07 us: 2.80x faster (-64%)
History
Date User Action Args
2020-07-29 00:50:51inada.naokisetrecipients: + inada.naoki
2020-07-29 00:50:51inada.naokisetmessageid: <1595983851.73.0.0947059112265.issue41431@roundup.psfhosted.org>
2020-07-29 00:50:51inada.naokilinkissue41431 messages
2020-07-29 00:50:51inada.naokicreate