wlauto.workloads.cfbench package

Module contents

class wlauto.workloads.cfbench.Cfbench(device, **kwargs)[source]

Bases: wlauto.common.android.workload.AndroidUiAutoBenchmark

activity = '.MainActivity'
aliases = AC([])
artifacts = AC([])
cfbench_params = ['java_mdflops', 'native_memory_read', 'java_msflops', 'native_disk_read', 'native_score', 'java_efficiency_memory_read', 'native_mips', 'native_mdflops', 'java_score', 'native_memory_write', 'java_memory_write', 'native_mallocs', 'native_msflops', 'java_mips', 'java_efficiency_mdflops', 'overall_score', 'java_memory_read', 'java_efficiency_memory_write', 'java_efficiency_mips', 'java_efficiency_msflops', 'native_disk_write']
core_modules = []
description = '\n CF-Bench is (mainly) CPU and memory benchmark tool specifically designed to\n be able to handle multi-core devices, produce a fairly stable score, and\n test both native as well managed code performance.\n\n https://play.google.com/store/apps/details?id=eu.chainfire.cfbench&hl=en\n\n From the website:\n\n It tests specific device properties you do not regularly see tested by other\n benchmarks, and runs in a set timeframe.\n\n It does produce some "final" scores, but as with every benchmark, you should\n take those with a grain of salt. It is simply not theoretically possible to\n produce a single number that accurately describes a device\'s performance.\n\n .. note:: This workload relies on the device being rooted\n\n '
finalize(*args, **kwargs)
initialize(*args, **kwargs)
kind = 'workload'
name = 'cfbench'
package = 'eu.chainfire.cfbench'
parameters = AC(["Param({'kind': <type 'list'>, 'mandatory': None, 'name': 'modules', 'constraint': None, 'default': None, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function integer>, 'mandatory': None, 'name': 'install_timeout', 'constraint': None, 'default': 300, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'check_apk', 'constraint': None, 'default': True, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'force_install', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'uninstall_apk', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'exact_abi', 'constraint': None, 'default': False, 'allowed_values': None, 'global_alias': None, 'override': False})", "Param({'kind': <function boolean>, 'mandatory': None, 'name': 'clear_data_on_reset', 'constraint': None, 'default': True, 'allowed_values': None, 'global_alias': None, 'override': False})"])
run_timeout = 300
summary_metrics = ['overall_score']
update_result(context)[source]
validate(*args, **kwargs)