blob: 7961b7070375c9c7df2b921183cc5c674f8bd919 [file] [log] [blame]
# Copyright (c) 2015 The Chromium OS 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 = "c-compiler-chrome@google.com"
NAME = "native_Benchmarks.vp8"
TIME = "LONG"
TEST_CATEGORY = "Benchmark"
TEST_CLASS = "performance"
TEST_TYPE = "server"
DOC = """
Run vp8 encoder and decoder as benchmarks.
"""
profiler = None
p_args = []
# Put the args into the args_dict.
args_dict = utils.args_to_dict(args)
if 'profiler' in args_dict:
profiler = args_dict['profiler']
if 'profiler_args' in args_dict:
p_args = args_dict['profiler_args']
if profiler:
job.default_profile_only = True
job.profilers.add(profiler, p_args)
def run_native_Benchmarks(machine):
client = hosts.create_host(machine)
job.run_test('native_Benchmarks', client=client, name='vp8', args=args)
# run the test in multiple machines
job.parallel_simple(run_native_Benchmarks, machines)
if profiler:
job.profilers.delete (profiler)