diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/box_plt_average_response_time_by_stage.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/box_plt_average_response_time_by_stage.png new file mode 100644 index 0000000..a1af657 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/box_plt_average_response_time_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/box_plt_mean_response_time_by_stage.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/box_plt_mean_response_time_by_stage.png new file mode 100644 index 0000000..2686962 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/box_plt_mean_response_time_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/confidence_intervals_failure_rate.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/confidence_intervals_failure_rate.png new file mode 100644 index 0000000..856ee3e Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/confidence_intervals_failure_rate.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/confidence_intervals_median_response_time.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/confidence_intervals_median_response_time.png new file mode 100644 index 0000000..efd5234 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/confidence_intervals_median_response_time.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/plt_average_failure_rate_by_stage.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/plt_average_failure_rate_by_stage.png new file mode 100644 index 0000000..9b0cce8 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/plt_average_failure_rate_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_by_stage.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_by_stage.png new file mode 100644 index 0000000..805998f Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_distribution.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_distribution.png new file mode 100644 index 0000000..71c724a Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_distribution.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_time_by_stage.png b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_time_by_stage.png new file mode 100644 index 0000000..fff61cf Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/10_30-13_30/output/requests_time_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/box_plt_average_response_time_by_stage.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/box_plt_average_response_time_by_stage.png new file mode 100644 index 0000000..3edc353 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/box_plt_average_response_time_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/box_plt_mean_response_time_by_stage.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/box_plt_mean_response_time_by_stage.png new file mode 100644 index 0000000..0fe1b87 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/box_plt_mean_response_time_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/confidence_intervals_failure_rate.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/confidence_intervals_failure_rate.png new file mode 100644 index 0000000..a2be97d Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/confidence_intervals_failure_rate.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/confidence_intervals_median_response_time.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/confidence_intervals_median_response_time.png new file mode 100644 index 0000000..279248f Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/confidence_intervals_median_response_time.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/plt_average_failure_rate_by_stage.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/plt_average_failure_rate_by_stage.png new file mode 100644 index 0000000..2bc386c Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/plt_average_failure_rate_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/request_distribution.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/request_distribution.png new file mode 100644 index 0000000..2bddd18 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/request_distribution.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_by_stage.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_by_stage.png new file mode 100644 index 0000000..2bddd18 Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_by_stage.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_distribution.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_distribution.png new file mode 100644 index 0000000..fbbefda Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_distribution.png differ diff --git a/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_time_by_stage.png b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_time_by_stage.png new file mode 100644 index 0000000..f28f58d Binary files /dev/null and b/loadtesting/data/baseapp/2024-07-13/14_30-17_30/output/requests_time_by_stage.png differ diff --git a/loadtesting/notebooks/locust.ipynb b/loadtesting/notebooks/locust.ipynb index fa0cb01..13344ed 100644 --- a/loadtesting/notebooks/locust.ipynb +++ b/loadtesting/notebooks/locust.ipynb @@ -9,6 +9,7 @@ "from scipy import stats\n", "import pytz\n", "import plotly.graph_objects as go\n", + "import os\n", "from matplotlib.ticker import ScalarFormatter, LogLocator" ], "id": "f546290dcd056f13", @@ -20,7 +21,9 @@ "id": "3d6de811535875d3", "metadata": {}, "source": [ - "basedir = \"../data/2024-07-13/\"\n", + "basedir = \"../data/baseapp/2024-07-13/14_30-17_30/\"\n", + "outputdir = basedir+\"output/\"\n", + "os.makedirs(outputdir, exist_ok=True)\n", "locust_data_history_file = basedir + \"data_stats_history.csv\"\n", "locust_data_file = basedir + \"data_stats.csv\"\n", "\n", @@ -30,8 +33,7 @@ " {\"users\": 300},\n", " {\"users\": 500},\n", " {\"users\": 800},\n", - " {\"users\": 1300},\n", - " {\"users\": 2100}\n", + " {\"users\": 1300}\n", "]\n", "\n", "valid_users = set()\n", @@ -174,6 +176,7 @@ "ax2.legend(loc='upper right')\n", "\n", "plt.title('User Count Performance Metrics over Time')\n", + "plt.savefig(outputdir+'requests_by_stage.png')\n", "plt.show()" ], "id": "1d9b22107c2c29a8", @@ -202,6 +205,7 @@ "ax2.legend(loc='upper right')\n", "\n", "plt.title('Response Time Metrics over Time')\n", + "plt.savefig(outputdir+'requests_time_by_stage.png')\n", "plt.show()" ], "id": "ab2c8c0f950ff28a", @@ -224,6 +228,7 @@ "plt.gca().yaxis.set_major_formatter(ScalarFormatter())\n", "plt.gca().yaxis.set_minor_locator(LogLocator(base=10))\n", "plt.xticks(rotation=45)\n", + "plt.savefig(outputdir+'box_plt_average_response_time_by_stage.png')\n", "plt.show()\n", "\n", "\n", @@ -238,6 +243,7 @@ "plt.gca().yaxis.set_minor_locator(LogLocator(base=10))\n", "plt.ylabel('Total Median Response Time (ms)')\n", "plt.xticks(rotation=45)\n", + "plt.savefig(outputdir+'box_plt_mean_response_time_by_stage.png')\n", "plt.show()" ], "outputs": [], @@ -257,6 +263,7 @@ "plt.title('Average Failure Rate by Stage')\n", "plt.xlabel('User Count')\n", "plt.ylabel('Failure Rate')\n", + "plt.savefig(outputdir+'plt_average_failure_rate_by_stage.png')\n", "plt.show()" ], "outputs": [], @@ -274,8 +281,6 @@ " 'Failure Rate': ['mean', 'median', 'std']\n", "})\n", "\n", - "print(summary_stats)\n", - "\n", "# Visualisierung der zusammengefassten Statistiken\n", "summary_stats.plot(kind='bar', subplots=True, layout=(3, 3), figsize=(18, 16))\n", "plt.show()" @@ -312,6 +317,7 @@ "plt.ylabel('Total Median Response Time')\n", "plt.legend()\n", "plt.grid(True)\n", + "plt.savefig(outputdir+'confidence_intervals_median_response_time.png')\n", "plt.show()" ], "outputs": [], @@ -346,6 +352,7 @@ "plt.ylabel('Failure Rate')\n", "plt.legend()\n", "plt.grid(True)\n", + "plt.savefig(outputdir+'confidence_intervals_failure_rate.png')\n", "plt.show()" ], "outputs": [],