◆ process_user_agent()
def fiftyone_devicedetection_examples.onpremise.performance.process_user_agent | ( | user_agent | ) |
\r\n
def | process_user_agent (user_agent) |
def fiftyone_devicedetection_examples.onpremise.performance.process_user_agent | ( | user_agent | ) |
def fiftyone_devicedetection_examples.onpremise.performance.process_user_agent_list | ( | data_file, | |
user_agent_list, | |||
list_number, | |||
output, | |||
skip = False
|
|||
) |
def fiftyone_devicedetection_examples.onpremise.performance.run | ( | data_file, | |
skip = False
|
|||
) |
fiftyone_devicedetection_examples.onpremise.performance.ap = argparse.ArgumentParser(description='Run detection benchmark.') |
fiftyone_devicedetection_examples.onpremise.performance.args = ap.parse_args() |
def fiftyone_devicedetection_examples.onpremise.performance.calibration = run(args.data_file, skip=True) |
fiftyone_devicedetection_examples.onpremise.performance.chunk_size = int(number_of_user_agents / threads) |
fiftyone_devicedetection_examples.onpremise.performance.data_file |
fiftyone_devicedetection_examples.onpremise.performance.default |
fiftyone_devicedetection_examples.onpremise.performance.file |
fiftyone_devicedetection_examples.onpremise.performance.help |
fiftyone_devicedetection_examples.onpremise.performance.newline |
fiftyone_devicedetection_examples.onpremise.performance.number_of_user_agents = len(user_agents) |
fiftyone_devicedetection_examples.onpremise.performance.reader = csv.reader(file) |
def fiftyone_devicedetection_examples.onpremise.performance.real = run(args.data_file, skip=False) |
def fiftyone_devicedetection_examples.onpremise.performance.real_time = real["time"] |
list fiftyone_devicedetection_examples.onpremise.performance.split_lists = None |
fiftyone_devicedetection_examples.onpremise.performance.threads = 0 |
fiftyone_devicedetection_examples.onpremise.performance.user_agents = list(reader) |
fiftyone_devicedetection_examples.onpremise.performance.user_agents_file |