Device Detection services for 51Degrees Pipeline

performance.py File Reference

Namespaces

namespace  fiftyone_devicedetection_examples
namespace  fiftyone_devicedetection_examples.onpremise
namespace  fiftyone_devicedetection_examples.onpremise.performance

Functions

 fiftyone_devicedetection_examples.onpremise.performance.process_user_agent (user_agent)
 fiftyone_devicedetection_examples.onpremise.performance.process_user_agent_list (data_file, user_agent_list, list_number, output, skip=False)
 fiftyone_devicedetection_examples.onpremise.performance.run (data_file, skip=False)

Variables

str fiftyone_devicedetection_examples.onpremise.performance.CONTACT_US = "/contact-us?utm_source=code&utm_medium=example&utm_campaign=51degrees-python&utm_content=fiftyone_devicedetection_examples-src-fiftyone_devicedetection_examples-onpremise-performance.py&utm_term=enterprise-data-file"
int fiftyone_devicedetection_examples.onpremise.performance.threads = 0
 fiftyone_devicedetection_examples.onpremise.performance.split_lists = None
 fiftyone_devicedetection_examples.onpremise.performance.ap = argparse.ArgumentParser(description='Run detection benchmark.')
 fiftyone_devicedetection_examples.onpremise.performance.default
 fiftyone_devicedetection_examples.onpremise.performance.help
 fiftyone_devicedetection_examples.onpremise.performance.args = ap.parse_args()
 fiftyone_devicedetection_examples.onpremise.performance.data_file
 fiftyone_devicedetection_examples.onpremise.performance.user_agents_file
 fiftyone_devicedetection_examples.onpremise.performance.newline
 fiftyone_devicedetection_examples.onpremise.performance.reader = csv.reader(file)
 fiftyone_devicedetection_examples.onpremise.performance.user_agents = list(reader)
 fiftyone_devicedetection_examples.onpremise.performance.number_of_user_agents = len(user_agents)
 fiftyone_devicedetection_examples.onpremise.performance.chunk_size = int(number_of_user_agents / threads)
 fiftyone_devicedetection_examples.onpremise.performance.calibration = run(args.data_file, skip=True)
 fiftyone_devicedetection_examples.onpremise.performance.real = run(args.data_file, skip=False)
 fiftyone_devicedetection_examples.onpremise.performance.real_time = real["time"]
dict fiftyone_devicedetection_examples.onpremise.performance.results
 fiftyone_devicedetection_examples.onpremise.performance.file
dict fiftyone_devicedetection_examples.onpremise.performance.final_result
 fiftyone_devicedetection_examples.onpremise.performance.data_file_path
 fiftyone_devicedetection_examples.onpremise.performance.licence_keys
 fiftyone_devicedetection_examples.onpremise.performance.performance_profile
 fiftyone_devicedetection_examples.onpremise.performance.add_javascript_builder
 fiftyone_devicedetection_examples.onpremise.performance.usage_sharing
 fiftyone_devicedetection_examples.onpremise.performance.auto_update