1 # Copyright 2018 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. 4 5 from autotest_lib.client.common_lib import utils 6 7 AUTHOR = 'dave.rodgman (a] arm.com' 8 NAME = 'kernel_IdlePerf' 9 PURPOSE = 'Test performance impact of idle' 10 CRITERIA = 'This test will fail if performance drops when CPU idle is enabled' 11 ATTRIBUTES = 'suite:crosbolt_perf_weekly' 12 TIME = 'MEDIUM' 13 TEST_CATEGORY = 'Performance' 14 TEST_CLASS = 'kernel' 15 TEST_TYPE = 'server' 16 17 DOC = ''' 18 This server side test suite tests for performance regressions where enabling 19 CPU idle hurts latency-sensitive workloads (e.g., smooth scrolling). 20 21 This is done by running smoothness.top_25_smooth and comparing results for 22 idle enabled vs. disabled: ideally, there should be only a very small impact. 23 24 This test currently only supports Arm aarch64. 25 26 Pass local=True to run with local telemetry and no AFE server. 27 ''' 28 29 def run_benchmark(machine): 30 host = hosts.create_host(machine) 31 job.run_test('kernel_IdlePerf', host=host, 32 args=utils.args_to_dict(args)) 33 34 parallel_simple(run_benchmark, machines) 35