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 Kwpolska, docs@python, lemburg, leovp, rhettinger, serhiy.storchaka, steven.daprano, vstinner
Date 2017-03-05.22:01:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CAMpsgwbFnHXGxfvzq=7HhwEG8MmanqndanfEohbLizWZJ-V=og@mail.gmail.com>
In-reply-to <1488735158.37.0.824750546179.issue29724@psf.upfronthosting.co.za>
Content
> Victor will probably tell me I'm micro-benchmarking this the wrong way,
so to satisfy him I did one more run:

You are doing it the wrong way :-D Please replace Timeit(...) with
runner=perf.Runner() and then runner.timeit('bench1', ...).

Runner spaws multiples processes and then test if a comparison is
significant (perf compare_to a.json b.json).

Moreover, for microbenchmaks, I highly recommand to tune your system for
benchmarks: python3 -m perf system tune, and see also perf doc ;-)

5% is not significant on a microbenchmark, it can be pure noise.
History
Date User Action Args
2017-03-05 22:01:01vstinnersetrecipients: + vstinner, lemburg, rhettinger, steven.daprano, docs@python, serhiy.storchaka, Kwpolska, leovp
2017-03-05 22:01:01vstinnerlinkissue29724 messages
2017-03-05 22:01:01vstinnercreate