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