Message289047
> 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. |
|
Date |
User |
Action |
Args |
2017-03-05 22:01:01 | vstinner | set | recipients:
+ vstinner, lemburg, rhettinger, steven.daprano, docs@python, serhiy.storchaka, Kwpolska, leovp |
2017-03-05 22:01:01 | vstinner | link | issue29724 messages |
2017-03-05 22:01:01 | vstinner | create | |
|