Skip to content

Commit 2ccccc8

Browse files
authored
Merge pull request swiftlang#82 from graydon/cperf-fixes-oct-3
Cperf fixes oct 3
2 parents 97501b4 + f177525 commit 2ccccc8

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

run_cperf

+14-3
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def main():
6868

6969
args = parse_args()
7070
instances = [NEW_INSTANCE, OLD_INSTANCE]
71-
configs = ['debug', 'debug-opt', 'wmo-onone', 'release']
71+
configs = get_configs(args.suite)
7272

7373
for instance in instances:
7474
workspace = get_workspace_for_instance(instance, args)
@@ -219,6 +219,15 @@ def get_projects(suite):
219219
raise ValueError("Unknown suite: " + suite)
220220

221221

222+
def get_configs(suite):
223+
if suite == 'full':
224+
return ['debug', 'debug-opt', 'wmo-onone', 'release']
225+
elif suite == 'smoketest':
226+
return ['debug', 'release']
227+
else:
228+
raise ValueError("Unknown suite: " + suite)
229+
230+
222231
def get_stats_dir(instance, variant):
223232
return os.path.join(os.getcwd(),
224233
"-".join(["stats", instance, variant]))
@@ -341,7 +350,8 @@ def analyze_results(configs, args):
341350
common.execute(
342351
common_args +
343352
['--output', get_table_name('head', 'timers', variant),
344-
'--select-stat', 'driver.*user',
353+
'--delta-usec-thresh', '1000000',
354+
'--select-stat', 'driver.*wall',
345355
'--compare-stats-dirs', sd_old, sd_new]))
346356
if os.path.exists(baseline):
347357
returncodes.append(
@@ -356,7 +366,8 @@ def analyze_results(configs, args):
356366
common_args +
357367
['--output',
358368
get_table_name('baseline', 'timers', variant),
359-
'--select-stat', 'driver.*user',
369+
'--delta-usec-thresh', '1000000',
370+
'--select-stat', 'driver.*wall',
360371
'--compare-to-csv-baseline', baseline, sd_new]))
361372

362373
out = args.output

0 commit comments

Comments
 (0)