wlauto.workloads.benchmarkpi package

Module contents

class wlauto.workloads.benchmarkpi.BenchmarkPi(device, **kwargs)[source]

Bases: wlauto.common.android.workload.AndroidUiAutoBenchmark

activity = '.BenchmarkPi'
aliases = AC([])
artifacts = AC([])
core_modules = []
description = '\n Measures the time the target device takes to run and complete the Pi\n calculation algorithm.\n\n http://androidbenchmark.com/howitworks.php\n\n from the website:\n\n The whole idea behind this application is to use the same Pi calculation\n algorithm on every Android Device and check how fast that proccess is.\n Better calculation times, conclude to faster Android devices. This way you\n can also check how lightweight your custom made Android build is. Or not.\n\n As Pi is an irrational number, Benchmark Pi does not calculate the actual Pi\n number, but an approximation near the first digits of Pi over the same\n calculation circles the algorithms needs.\n\n So, the number you are getting in miliseconds is the time your mobile device\n takes to run and complete the Pi calculation algorithm resulting in a\n approximation of the first Pi digits.\n '
finalize(*args, **kwargs)
initialize(*args, **kwargs)
kind = 'workload'
name = 'benchmarkpi'
package = 'gr.androiddev.BenchmarkPi'
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})"])
regex = <_sre.SRE_Pattern object at 0x1bc8e10>
summary_metrics = ['pi calculation']
update_result(context)[source]
validate(*args, **kwargs)