Skip to content

Commit

Permalink
Update performance results (#2761)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktbyers committed Apr 26, 2022
1 parent 276fa26 commit 3ad6c6e
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 32 deletions.
4 changes: 2 additions & 2 deletions tests/performance/gen_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def generate_graph(device_name: str, params: Dict) -> None:
device_type = device_dict["device_type"]
outfile = f"netmiko_{device_type}.svg"
entries = read_csv(device)
entries = filter_versions(entries)
# entries = filter_versions(entries)

# Create relevant lists
netmiko_versions = [v["netmiko_version"] for v in entries]
Expand Down Expand Up @@ -101,7 +101,7 @@ def generate_report():
if __name__ == "__main__":
f_name = os.environ.get("TEST_DEVICES", "test_devices.yml")
with open(f_name) as f:
devices = yaml.load(f)
devices = yaml.safe_load(f)
for device_name, device in devices.items():
if "graph" in device:
generate_graph(device_name, device)
Expand Down
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_arista_eos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_cisco_ios.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_cisco_nxos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_cisco_xe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_cisco_xr.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_hp_procurve.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/performance/graphs/netmiko_juniper_junos.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 8 additions & 8 deletions tests/performance/netmiko_performance.csv
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ date,netmiko_version,device_name,connect,send_command_simple,send_config_simple,
2022-3-23 14:33:38,4.0.0,arista1,0:00:01.687836,0:00:02.167681,0:00:03.117634,0:00:21.231472
2022-3-23 14:34:57,4.0.0,juniper_vmx,0:00:05.926020,0:00:06.641656,0:00:17.185611,0:00:32.165569
2022-3-23 14:35:27,4.0.0,cisco_asa,0:00:05.193105,0:00:04.572510,0:00:05.568892,0:00:09.710037
2022-4-26 13:45:1,4.0.1a1,cisco1,0:00:00.857724,0:00:00.931702,0:00:00.925704,0:00:04.221053
2022-4-26 13:45:12,4.0.1a1,cisco3,0:00:00.763497,0:00:01.044846,0:00:00.943925,0:00:07.006885
2022-4-26 13:45:28,4.0.1a1,cisco5,0:00:01.400548,0:00:01.111659,0:00:01.537387,0:00:10.841677
2022-4-26 13:46:4,4.0.1a1,nxos1,0:00:03.026680,0:00:03.264042,0:00:04.075294,0:00:20.931428
2022-4-26 13:46:27,4.0.1a1,cisco_xr_azure,0:00:02.203243,0:00:02.434539,0:00:03.168557,0:00:12.212727
2022-4-26 13:46:57,4.0.1a1,arista1,0:00:01.705048,0:00:02.553805,0:00:02.970468,0:00:20.467766
2022-4-26 13:47:30,4.0.1a1,juniper_vmx,0:00:03.311785,0:00:04.062150,0:00:03.734963,0:00:17.751708
2022-4-26 13:50:17,4.0.1a1,hp_procurve,0:00:01.973460,0:00:02.218327,0:00:02.201625,0:00:10.596277
2022-4-26 14:2:11,4.0.1a1,cisco1,0:00:01.063310,0:00:01.119291,0:00:01.125631,0:00:04.039539
2022-4-26 14:2:24,4.0.1a1,cisco3,0:00:00.878103,0:00:00.778386,0:00:01.018125,0:00:08.635855
2022-4-26 14:2:42,4.0.1a1,cisco5,0:00:01.356996,0:00:01.121357,0:00:01.593118,0:00:13.054712
2022-4-26 14:3:17,4.0.1a1,nxos1,0:00:03.239731,0:00:03.440601,0:00:04.322041,0:00:20.021282
2022-4-26 14:3:40,4.0.1a1,cisco_xr_azure,0:00:02.079637,0:00:02.496030,0:00:03.151455,0:00:11.866821
2022-4-26 14:4:12,4.0.1a1,arista1,0:00:01.841382,0:00:01.905576,0:00:03.065721,0:00:23.224994
2022-4-26 14:4:46,4.0.1a1,juniper_vmx,0:00:03.435827,0:00:03.882981,0:00:03.512782,0:00:19.214745
2022-4-26 14:7:33,4.0.1a1,hp_procurve,0:00:02.028994,0:00:02.139018,0:00:02.222841,0:00:10.582982
2 changes: 1 addition & 1 deletion tests/performance/test_netmiko.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def wrapper_decorator(*args, **kwargs):
def read_devices():
f_name = os.environ.get("TEST_DEVICES", "test_devices.yml")
with open(f_name) as f:
return yaml.load(f)
return yaml.safe_load(f)


@f_exec_time
Expand Down

0 comments on commit 3ad6c6e

Please sign in to comment.