• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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'
11ATTRIBUTES = 'suite:crosbolt_perf_weekly'
12TIME = 'MEDIUM'
13TEST_CATEGORY = 'Performance'
14TEST_CLASS = 'kernel'
15TEST_TYPE = 'server'
16
17DOC = '''
18This server side test suite tests for performance regressions where enabling
19CPU idle hurts latency-sensitive workloads (e.g., smooth scrolling).
20
21This is done by running smoothness.top_25_smooth and comparing results for
22idle enabled vs. disabled: ideally, there should be only a very small impact.
23
24This test currently only supports Arm aarch64.
25
26Pass local=True to run with local telemetry and no AFE server.
27'''
28
29def 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
34parallel_simple(run_benchmark, machines)
35