STINNER Victor <victor.stin...@gmail.com> added the comment: It is very to get stable benchmarks with timings shorter than 1 ms, and even harder for timings shorter than 1 us.
I wrote documentation to implement how to get more stable results: http://perf.readthedocs.io/en/latest/run_benchmark.html#how-to-get-reproductible-benchmark-results On Linux, using CPU isolation helps a lot, and perf uses automatically isolated CPUs. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32226> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com