blob: 9056d708a7b3361acce09f6784ed38b398ce984e [file] [log] [blame]
# Copyright 2018 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# TEST IS DISABLED UNTIL MIGRATED TO PYTHON 3.
# For instructions on how to: go/tauto-py3-migration
# To re-enable migrate to Python 3.
# If the test is not migrated by 1/14/22 it will be deleted.
from autotest_lib.client.common_lib import utils
AUTHOR = 'dave.rodgman@arm.com'
NAME = 'kernel_IdlePerf'
PURPOSE = 'Test performance impact of idle'
CRITERIA = 'This test will fail if performance drops when CPU idle is enabled'
# Disable this test until it can be fixed: http://b/154426893
# ATTRIBUTES = 'suite:crosbolt_perf_weekly'
TIME = 'MEDIUM'
TEST_CATEGORY = 'Performance'
TEST_CLASS = 'kernel'
TEST_TYPE = 'server'
DOC = '''
This server side test suite tests for performance regressions where enabling
CPU idle hurts latency-sensitive workloads (e.g., smooth scrolling).
This is done by running smoothness.top_25_smooth and comparing results for
idle enabled vs. disabled: ideally, there should be only a very small impact.
This test currently only supports Arm aarch64.
Pass local=True to run with local telemetry and no AFE server.
'''
def run_benchmark(machine):
host = hosts.create_host(machine)
job.run_test('kernel_IdlePerf', host=host,
args=utils.args_to_dict(args))
parallel_simple(run_benchmark, machines)