dissertation-3-evaluation/evaluation.ipynb

668 lines
16 KiB
Plaintext
Raw Normal View History

{
"cells": [
2020-11-05 17:25:23 +00:00
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-11-05 17:25:23 +00:00
"source": [
"# Project Evaluation\n",
"\n",
2020-11-16 11:47:22 +00:00
"This file interfaces with a Proxmox server to automatically generate VM structures and graphs for testing the\n",
2020-11-05 17:25:23 +00:00
"success criteria of my project."
2020-12-12 13:06:20 +00:00
]
2020-11-05 17:25:23 +00:00
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-11-05 17:25:23 +00:00
"source": [
"## Setup\n",
"This section sets up the required variables for the Proxmox server."
2020-12-12 13:06:20 +00:00
]
2020-11-05 17:25:23 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
"source": [
"import os\n",
"import ipaddress\n",
"\n",
"import runners\n",
"from structure import StandardEnvironment, StandardTest\n",
"from structure import DirectEnvironment, DirectTest\n",
"from structure import BaseEnvironment\n",
"\n",
"%load_ext dotenv\n",
"%dotenv"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-11-05 17:25:23 +00:00
"source": [
"## Testing\n",
"This section gathers the required data from the different structures for later graphs."
2020-12-12 13:06:20 +00:00
]
2020-11-05 17:25:23 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
2020-11-04 22:53:36 +00:00
"outputs": [],
"source": [
"runner = runners.ProxmoxRunner(\n",
" host=os.getenv('PROXMOX_HOST'),\n",
" node=os.getenv('PROXMOX_NODE'),\n",
" user=os.getenv('PROXMOX_USER'),\n",
" token_name=os.getenv('PROXMOX_TOKEN_NAME'),\n",
" token_value=os.getenv('PROXMOX_TOKEN_VALUE'),\n",
"\n",
" template_id=9000,\n",
" initial_vm_id=21002,\n",
"\n",
2020-11-04 22:53:36 +00:00
" internet_bridge=os.getenv('INTERNET_BRIDGE'),\n",
"\n",
2020-11-04 22:53:36 +00:00
" management_bridge=os.getenv('MANAGEMENT_BRIDGE'),\n",
" management_initial_ip=ipaddress.ip_address(os.getenv('MANAGEMENT_INITIAL_IP')),\n",
")\n",
"\n",
"setup_params = {\n",
" 'access_key': os.getenv('S3_ACCESS_KEY'),\n",
" 'secret_key': os.getenv('S3_SECRET_KEY'),\n",
" 'branch': os.getenv('TARGET_BRANCH'),\n",
"}"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
"source": [
"from graphs import TestStore\n",
2020-11-05 17:25:23 +00:00
"\n",
"test_store = TestStore()\n",
2020-11-13 16:37:06 +00:00
"\n",
"def run_and_save_test(env: BaseEnvironment, test: StandardTest):\n",
" (inbound, outbound) = env.test(test)\n",
" test_store.save_inbound(test, inbound)\n",
" test_store.save_outbound(test, outbound)\n",
2020-11-15 00:48:44 +00:00
"\n",
"def attempt_n_times(foo, n=3):\n",
2020-11-16 23:04:48 +00:00
" for i in range(n):\n",
2020-11-15 00:48:44 +00:00
" try:\n",
" return foo()\n",
2020-11-16 23:04:48 +00:00
" except KeyboardInterrupt as e:\n",
" raise e\n",
2020-11-15 00:48:44 +00:00
" except Exception as e:\n",
2020-11-16 23:04:48 +00:00
" if i == n - 1:\n",
2020-11-15 00:48:44 +00:00
" raise e\n",
"\n",
"\n",
"fast_tests = True"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Direct Server to Server"
]
2020-11-05 17:25:23 +00:00
},
2020-11-16 11:47:22 +00:00
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
2020-11-16 11:47:22 +00:00
"outputs": [],
"source": [
"def direct_tests():\n",
" with DirectEnvironment(runner) as env:\n",
" run_and_save_test(env, DirectTest(1, bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, DirectTest(2, bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, DirectTest(3, bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, DirectTest(4, bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
2020-11-16 14:55:05 +00:00
"\n",
"attempt_n_times(direct_tests)"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Local Portal with 2 Interfaces"
]
2020-11-13 16:37:06 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
2020-11-13 16:37:06 +00:00
"outputs": [],
"source": [
2020-11-15 00:48:44 +00:00
"def two_interface_tests():\n",
" with StandardEnvironment(2, runner, setup_params) as env:\n",
" run_and_save_test(env, StandardTest([1,1], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, StandardTest([1,2], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, StandardTest([2,2], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
2020-11-15 00:48:44 +00:00
" run_and_save_test(env, StandardTest(\n",
" [2,2],\n",
2020-12-12 17:15:09 +00:00
" events={10: (0,1), 20: (0,2)},\n",
2020-11-15 00:48:44 +00:00
" duration=30,\n",
" interval_variation_target=0.8 if fast_tests else 0.5,\n",
2020-11-15 00:48:44 +00:00
" ))\n",
"\n",
"attempt_n_times(two_interface_tests)"
2020-12-12 13:06:20 +00:00
]
2020-11-05 17:25:23 +00:00
},
2020-11-13 16:37:06 +00:00
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Local Portal with 3 Interfaces"
]
2020-11-13 16:37:06 +00:00
},
2020-11-05 17:25:23 +00:00
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
2020-11-05 17:25:23 +00:00
"outputs": [],
"source": [
2020-11-15 00:48:44 +00:00
"def three_interface_tests():\n",
" with StandardEnvironment(3, runner, setup_params) as env:\n",
" run_and_save_test(env, StandardTest([1,1,1], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, StandardTest([2,2,2], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
2020-11-15 00:48:44 +00:00
"\n",
"attempt_n_times(three_interface_tests)"
2020-12-12 13:06:20 +00:00
]
2020-11-05 17:25:23 +00:00
},
2020-11-13 16:37:06 +00:00
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Local Portal with 4 Interfaces"
]
2020-11-13 16:37:06 +00:00
},
2020-11-05 17:25:23 +00:00
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
},
2020-11-05 17:25:23 +00:00
"outputs": [],
"source": [
2020-11-15 00:48:44 +00:00
"def four_interface_tests():\n",
" with StandardEnvironment(4, runner, setup_params) as env:\n",
" run_and_save_test(env, StandardTest([1,1,1,1], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
" run_and_save_test(env, StandardTest([2,2,2,2], bandwidth_variation_target=0.2 if fast_tests else 0.05))\n",
2020-11-15 00:48:44 +00:00
"\n",
"attempt_n_times(four_interface_tests)"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-11-05 17:25:23 +00:00
"source": [
"## Graphs\n",
"This section produces graphs from the collected data."
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-01 18:35:10 +00:00
"source": [
"from graphs import plot_iperf_results, plot_iperf_results_time\n",
"\n",
"if not os.path.exists('output/'):\n",
" os.makedirs('output/')\n",
2020-11-01 18:35:10 +00:00
"\n",
"for filename in os.listdir('output'):\n",
" file_path = os.path.join('output/', filename)\n",
" os.unlink(file_path)"
2020-12-12 13:06:20 +00:00
]
2020-11-15 00:48:44 +00:00
},
{
2020-11-10 20:44:54 +00:00
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Section 4.2: Graphs\n",
"#### Subsection 4.2.2 Line Graphs\n",
"\n",
"Figure 4.1 Line graphs produced with varying error bars enabled"
]
2020-11-15 00:48:44 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-15 00:48:44 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-15 00:48:44 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-15 00:48:44 +00:00
" {\n",
" '4x1MB Connections (proxied)': StandardTest([1,1,1,1]),\n",
" '3x1MB Connections (proxied)': StandardTest([1,1,1]),\n",
" '2x1MB Connections (proxied)': StandardTest([1,1]),\n",
" },\n",
" fast_tests,\n",
2020-11-15 00:48:44 +00:00
" error_bars_x=False,\n",
" error_bars_y=False,\n",
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-10 21:43:49 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-10 21:43:49 +00:00
" {\n",
2020-11-14 10:50:20 +00:00
" '4x1MB Connections (proxied)': StandardTest([1,1,1,1]),\n",
" '3x1MB Connections (proxied)': StandardTest([1,1,1]),\n",
" '2x1MB Connections (proxied)': StandardTest([1,1]),\n",
2020-11-10 21:43:49 +00:00
" },\n",
" fast_tests,\n",
2020-11-14 10:50:20 +00:00
" error_bars_x=True,\n",
2020-11-15 00:48:44 +00:00
" error_bars_y=False,\n",
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 14:55:05 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-16 23:04:48 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 23:04:48 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-16 23:04:48 +00:00
" {\n",
" '4x1MB Connections (proxied)': StandardTest([1,1,1,1]),\n",
" '3x1MB Connections (proxied)': StandardTest([1,1,1]),\n",
" '2x1MB Connections (proxied)': StandardTest([1,1]),\n",
" },\n",
" fast_tests,\n",
" error_bars_x=False,\n",
" error_bars_y=True,\n",
2020-11-16 23:04:48 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 23:04:48 +00:00
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### More than 2 connections evaluation"
]
2020-11-16 23:04:48 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-16 23:04:48 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 23:04:48 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-16 23:04:48 +00:00
" {\n",
" '4x1MB Connections\\n(proxied)': StandardTest([1,1,1,1]),\n",
" '3x1MB Connections\\n(proxied)': StandardTest([1,1,1]),\n",
" '2x1MB Connections\\n(proxied)': StandardTest([1,1]),\n",
2020-11-16 23:04:48 +00:00
" },\n",
" fast_tests,\n",
2020-11-16 23:04:48 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 23:04:48 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-16 23:04:48 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 23:04:48 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-16 23:04:48 +00:00
" {\n",
" '4x2MB Connections\\n(proxied)': StandardTest([2,2,2,2]),\n",
" '3x2MB Connections\\n(proxied)': StandardTest([2,2,2]),\n",
" '2x2MB Connections\\n(proxied)': StandardTest([2,2]),\n",
2020-11-16 23:04:48 +00:00
" },\n",
" fast_tests,\n",
2020-11-16 23:04:48 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 23:04:48 +00:00
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Mixed Performance Evaluation"
]
2020-11-16 23:04:48 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-15 00:48:44 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-15 00:48:44 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-16 14:55:05 +00:00
" {\n",
" '2x2MB Connections (proxied)': StandardTest([2,2]),\n",
" '1x1MB + 1x2MB\\nConnections (proxied)': StandardTest([1,2]),\n",
2020-11-16 14:55:05 +00:00
" '2x1MB Connections (proxied)': StandardTest([1,1]),\n",
" },\n",
" fast_tests,\n",
2020-11-16 14:55:05 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 14:55:05 +00:00
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Eventful Evaluation"
]
2020-11-16 14:55:05 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-16 14:55:05 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 14:55:05 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-16 14:55:05 +00:00
" {\n",
" 'Varied Connection': StandardTest([2,2], events={10: (0,1), 15: (0,2)}, duration=30),\n",
2020-11-16 14:55:05 +00:00
" },\n",
" fast_tests,\n",
2020-11-16 14:55:05 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 14:55:05 +00:00
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Comparisons to a Direct Connection"
]
2020-11-16 14:55:05 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-16 14:55:05 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 14:55:05 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-16 14:55:05 +00:00
" {\n",
" '1x2MB Connection\\n(direct)': DirectTest(2),\n",
" '2x1MB Connections\\n(proxied)': StandardTest([1,1]),\n",
" '1x1MB Connection\\n(direct)': DirectTest(1),\n",
2020-11-16 14:55:05 +00:00
"\n",
" },\n",
" fast_tests,\n",
2020-11-16 14:55:05 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 14:55:05 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-16 14:55:05 +00:00
" {\n",
" '1x4MB Connection\\n(direct)': DirectTest(4),\n",
" '2x2MB Connections\\n(proxied)': StandardTest([2,2]),\n",
" '1x2MB Connection\\n(direct)': DirectTest(2),\n",
2020-11-16 14:55:05 +00:00
"\n",
" },\n",
" fast_tests,\n",
2020-11-16 14:55:05 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
2020-11-16 14:55:05 +00:00
},
2020-11-15 00:48:44 +00:00
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-15 00:48:44 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-15 00:48:44 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-15 00:48:44 +00:00
" {\n",
" '4x1MB Connections\\n(proxied)': StandardTest([1,1,1,1]),\n",
" '3x1MB Connections\\n(proxied)': StandardTest([1,1,1]),\n",
" '2x1MB Connections\\n(proxied)': StandardTest([1,1]),\n",
2020-11-15 00:48:44 +00:00
" },\n",
" fast_tests,\n",
2020-11-15 00:48:44 +00:00
" filename='png',\n",
2020-11-10 21:43:49 +00:00
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-10 21:43:49 +00:00
"source": [
"plot_iperf_results(test_store,\n",
2020-11-10 21:43:49 +00:00
" {\n",
" '4x2MB Connections\\n(proxied)': StandardTest([2,2,2,2]),\n",
" '3x2MB Connections\\n(proxied)': StandardTest([2,2,2]),\n",
" '2x2MB Connections\\n(proxied)': StandardTest([2,2]),\n",
2020-11-10 21:43:49 +00:00
" },\n",
" fast_tests,\n",
2020-11-15 00:48:44 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Mixed Performance Evaluation"
]
2020-11-15 00:48:44 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-15 00:48:44 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-15 00:48:44 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-15 00:48:44 +00:00
" {\n",
" '2x2MB Connections\\n(proxied)': StandardTest([2,2]),\n",
" '1x1MB + 1x2MB\\nConnections (proxied)': StandardTest([1,2]),\n",
" '2x1MB Connections\\n(proxied)': StandardTest([1,1]),\n",
2020-11-15 00:48:44 +00:00
" },\n",
" fast_tests,\n",
2020-11-15 00:48:44 +00:00
" filename='png',\n",
2020-11-10 21:43:49 +00:00
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Eventful Evaluation"
]
2020-11-15 00:48:44 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
"source": [
"plot_iperf_results_time(test_store,\n",
" {\n",
2020-11-14 10:50:20 +00:00
" 'Varied Connection': StandardTest([2,2], events={10: (0,1), 15: (0,2)}, duration=30),\n",
" },\n",
" fast_tests,\n",
2020-11-16 11:47:22 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "markdown",
2020-12-12 17:15:09 +00:00
"metadata": {},
2020-12-12 13:06:20 +00:00
"source": [
"### Comparisons to a Direct Connection"
]
2020-11-16 11:47:22 +00:00
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
2020-11-16 11:47:22 +00:00
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 11:47:22 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-16 11:47:22 +00:00
" {\n",
" '1x2MB Connection (not proxied)': DirectTest(2),\n",
" '2x1MB Connections (proxied)': StandardTest([1,1]),\n",
" '1x1MB Connection (not proxied)': DirectTest(1),\n",
"\n",
" },\n",
" fast_tests,\n",
2020-11-16 11:47:22 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
2020-12-12 13:06:20 +00:00
"execution_count": null,
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
2020-11-16 11:47:22 +00:00
"source": [
"plot_iperf_results_time(test_store,\n",
2020-11-16 11:47:22 +00:00
" {\n",
" '1x4MB Connection (not proxied)': DirectTest(4),\n",
" '2x2MB Connections (proxied)': StandardTest([2,2]),\n",
" '1x2MB Connection (not proxied)': DirectTest(2),\n",
"\n",
" },\n",
" fast_tests,\n",
2020-11-15 00:48:44 +00:00
" filename='png',\n",
")"
2020-12-12 13:06:20 +00:00
]
},
{
"cell_type": "code",
2020-11-04 22:55:03 +00:00
"execution_count": null,
2020-11-01 18:35:10 +00:00
"metadata": {
"pycharm": {
"name": "#%%\n"
}
2020-12-12 13:06:20 +00:00
},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
2020-12-12 17:15:09 +00:00
"version": "3.9.0"
}
},
"nbformat": 4,
"nbformat_minor": 1
2020-12-12 13:06:20 +00:00
}