Skip to content
Snippets Groups Projects
Commit 364ab1cf authored by Axel Gard's avatar Axel Gard
Browse files

Merge branch 'master' of gitlab.liu.se:axega544/tdde35-distributed-test-suite

parents 5efba04e 019a9d6b
No related branches found
No related tags found
No related merge requests found
Showing
with 24 additions and 6 deletions
......@@ -8,7 +8,7 @@ import os
FORMAT_1 = "s-b" # square marker, solid line, blue.
FORMAT_2 = "o-r" # circle marker, solid line, red.
FORMAT_3 = "^:m" # triangle_up marker, dotted line, magenta.
FORMAT_3 = "^:m" # triangle_up marker, dotted line, magenta.
def get_json_data():
""" iterates over the reslut dir in order
to merge the data from different results .json and
......@@ -58,12 +58,12 @@ def distance_graph(service_name, client_data):
clients = []
distances = []
max_reply_times = []
for client, data in client_data.items():
clients.append(client)
distances.append(round(data["distance"]))
max_reply_times.append(round(data["max_reply_time"]))
with plt.rc_context({"axes.autolimit_mode": "round_numbers"}):
figure, l_axes = plt.subplots()
plt.title(f"Service: {service_name}")
......@@ -175,7 +175,7 @@ def graph(result):
results.append(result)
results.sort(key = lambda x:x["request rate"])
req_rate = [x["request rate"] for x in results]
req_rate = [x["request rate"] for x in results]
reply_time = [x["reply time"] for x in results]
error_rate = [x["error rate"] for x in results]
......@@ -191,7 +191,7 @@ def graph(result):
service_metrics[service_name][client_name]["max_reply_time"] = max(reply_time)
service_metrics[service_name][client_name]["hops"] = 10 # PLACEHOLDER
for service, data in service_metrics.items():
distance_graph(service, data)
location_graph(service, data)
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
[{"service": "www.grab.com", "ipinfo client": {"ip": "35.180.137.70", "hostname": "ec2-35-180-137-70.eu-west-3.compute.amazonaws.com", "city": "Paris", "region": "\u00cele-de-France", "country": "FR", "loc": "48.8534,2.3488", "org": "AS16509 Amazon.com, Inc.", "postal": "75000", "timezone": "Europe/Paris", "country_name": "France", "latitude": "48.8534", "longitude": "2.3488"}, "ipinfo service": {"ip": "143.204.222.12", "hostname": "server-143-204-222-12.cdg3.r.cloudfront.net", "city": "Paris", "region": "\u00cele-de-France", "country": "FR", "loc": "48.8534,2.3488", "org": "AS16509 Amazon.com, Inc.", "postal": "75000", "timezone": "Europe/Paris", "country_name": "France", "latitude": "48.8534", "longitude": "2.3488"}, "data": [{"Total": {"connections": "2000", "requests": "2000", "replies": "2000", "test-duration": "9.999"}, "Request rate": "200.0", "Reply rate [replies/s]": {"min": "199.8", "avg": "199.9", "max": "200.0", "stddev": "0.1"}, "Reply time [ms]": {"response": "3.8", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "2000", "4xx": "0", "5xx": "0"}, "Errors": {"total": "0", "client-timo": "0", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "5000", "requests": "5000", "replies": "5000", "test-duration": "10.000"}, "Request rate": "500.0", "Reply rate [replies/s]": {"min": "499.4", "avg": "499.9", "max": "500.4", "stddev": "0.7"}, "Reply time [ms]": {"response": "4.5", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "5000", "4xx": "0", "5xx": "0"}, "Errors": {"total": "0", "client-timo": "0", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "10000", "requests": "10000", "replies": "10000", "test-duration": "10.019"}, "Request rate": "998.1", "Reply rate [replies/s]": {"min": "999.2", "avg": "999.4", "max": "999.6", "stddev": "0.3"}, "Reply time [ms]": {"response": "3.9", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "10000", "4xx": "0", "5xx": "0"}, "Errors": {"total": "0", "client-timo": "0", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "20000", "requests": "19999", "replies": "19999", "test-duration": "10.140"}, "Request rate": "1972.4", "Reply rate [replies/s]": {"min": "1998.4", "avg": "1999.0", "max": "1999.6", "stddev": "0.8"}, "Reply time [ms]": {"response": "3.8", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "19999", "4xx": "0", "5xx": "0"}, "Errors": {"total": "1", "client-timo": "1", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "30000", "requests": "30000", "replies": "30000", "test-duration": "10.007"}, "Request rate": "2998.0", "Reply rate [replies/s]": {"min": "2997.0", "avg": "2999.0", "max": "3001.0", "stddev": "2.8"}, "Reply time [ms]": {"response": "3.9", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "30000", "4xx": "0", "5xx": "0"}, "Errors": {"total": "0", "client-timo": "0", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "50000", "requests": "50000", "replies": "50000", "test-duration": "10.009"}, "Request rate": "4995.7", "Reply rate [replies/s]": {"min": "4992.4", "avg": "4997.0", "max": "5001.6", "stddev": "6.5"}, "Reply time [ms]": {"response": "4.2", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "50000", "4xx": "0", "5xx": "0"}, "Errors": {"total": "0", "client-timo": "0", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "70000", "requests": "68604", "replies": "68604", "test-duration": "10.020"}, "Request rate": "6847.0", "Reply rate [replies/s]": {"min": "6712.9", "avg": "6855.4", "max": "6997.9", "stddev": "201.5"}, "Reply time [ms]": {"response": "9.0", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "68604", "4xx": "0", "5xx": "0"}, "Errors": {"total": "1396", "client-timo": "1396", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}, {"Total": {"connections": "100000", "requests": "67412", "replies": "64004", "test-duration": "11.333"}, "Request rate": "5948.1", "Reply rate [replies/s]": {"min": "5104.5", "avg": "5971.6", "max": "6838.6", "stddev": "1226.2"}, "Reply time [ms]": {"response": "230.3", "transfer": "0.0"}, "Reply size [B]": {"header": "394.0", "content": "183.0", "footer": "0.0"}, "Reply status": {"1xx": "0", "2xx": "0", "3xx": "64004", "4xx": "0", "5xx": "0"}, "Errors": {"total": "35996", "client-timo": "35996", "socket-timo": "0", "connrefused": "0", "connreset": "0", "fd-unavail": "0", "addrunavail": "0", "ftab-full": "0", "other": "0"}}]}]
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment