# HG changeset patch # User Pierre-Yves David # Date 2019-05-21 13:08:06 # Node ID 563cd9a726826e0318bde9fb588b761a404b8d56 # Parent 45c18f7345c112318cc34cb4ae1ba854a5dd7b55 perf: add a `pre-run` option sometimes, the initial run is necessary to warm some cache that are not relevant for the current measurement. We add a new `perf.pre-run` option to specify a number of run of the benchmark logic that will happens before measurement are taken. diff --git a/contrib/perf.py b/contrib/perf.py --- a/contrib/perf.py +++ b/contrib/perf.py @@ -15,6 +15,9 @@ Configurations ``presleep`` number of second to wait before any group of runs (default: 1) +``pre-run`` + number of run to perform before starting measurement. + ``run-limits`` Control the number of runs each benchmark will perform. The option value should be a list of `