Skip to content

Commit

Permalink
✨ (analysis) auto export graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Pe committed Jul 14, 2024
1 parent 60b3aae commit d00941d
Show file tree
Hide file tree
Showing 18 changed files with 12 additions and 5 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 12 additions & 5 deletions loadtesting/notebooks/locust.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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": [],
Expand All @@ -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": [],
Expand All @@ -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()"
Expand Down Expand Up @@ -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": [],
Expand Down Expand Up @@ -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": [],
Expand Down

0 comments on commit d00941d

Please sign in to comment.