1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 """Config file read by run-bisect-perf-regression.py.
7 This script is intended for use by anyone that wants to run a remote bisection
8 on a range of revisions to look for a performance regression. Modify the config
9 below and add the revision range, performance command, and metric. You can then
12 Changes to this file should never be submitted.
15 'command': This is the full command to execute the test.
16 'good_revision': An svn or git revision where the metric hadn't regressed yet.
17 'bad_revision': An svn or git revision sometime after the metric regressed.
18 'metric': The name of the metric to parse out from the results of the
19 performance test. You can retrieve the metric by looking at the stdio of
20 the performance test. Look for lines of the format:
21 RESULT <graph>: <trace>= <value> <units>
22 The metric name is "<graph>/<trace>".
23 'repeat_count': The number of times to repeat the performance test.
24 'max_time_minutes': The script will attempt to run the performance test
25 "repeat_count" times, unless it exceeds "max_time_minutes".
26 'truncate_percent': The highest/lowest % values will be discarded before
27 computing the mean result for each revision.
32 'command': './tools/perf/run_benchmark --browser=release sunspider',
33 'metric': 'Total/Total',
34 'good_revision': '14ac2486c0eba1266d2da1c52e8759d9c784fe80',
35 'bad_revision': 'fcf8643d31301eea990a4c42d7d8c9fc30cc33ec',
37 'max_time_minutes': '20',
38 'truncate_percent': '25',
41 For Windows, if you're calling a python script you will need to add "python"
42 to the command, so the command would be changed to:
43 'python tools/perf/run_benchmark -v --browser=release sunspider',
52 'max_time_minutes': '',
53 'truncate_percent': '',
56 # Workaround git try issue, see crbug.com/257689