Skip to content

Commit

Permalink
💄 (graphs) tight layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias-Pe committed Jul 23, 2024
1 parent ac1b52d commit 91cc1f0
Show file tree
Hide file tree
Showing 44 changed files with 85 additions and 85 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.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
\toprule
& efficiency & total\_energy & successful\_requests \\
\midrule
prometheus & 0.000000 & 3523.000000 & 0.000000 \\
postservice-db & 0.000000 & 162520.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 217.000000 & 0.000000 \\
gateway & 64.481190 & 10659.000000 & 687305.000000 \\
userservice & 62.487268 & 5498.000000 & 343555.000000 \\
zipkin & 0.000000 & 1095.000000 & 0.000000 \\
servicediscovery & 0.000000 & 742.000000 & 0.000000 \\
userservice-db & 0.000000 & 21917.000000 & 0.000000 \\
notificationservice & 90.936278 & 2558.000000 & 232615.000000 \\
postservice & 20.344050 & 172812.000000 & 3515696.000000 \\
feedservice-db & 0.000000 & 7455.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1846.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 260353.000000 & 0.000000 \\
statisticservice & 48.775384 & 12301.000000 & 599986.000000 \\
redis & 0.000000 & 464.000000 & 0.000000 \\
notificationservice-db & 0.000000 & 7655.000000 & 0.000000 \\
postservice & 20.344050 & 172812.000000 & 3515696.000000 \\
notificationservice & 90.936278 & 2558.000000 & 232615.000000 \\
userservice & 62.487268 & 5498.000000 & 343555.000000 \\
gateway & 64.481190 & 10659.000000 & 687305.000000 \\
statisticservice & 48.775384 & 12301.000000 & 599986.000000 \\
zipkin & 0.000000 & 1095.000000 & 0.000000 \\
prometheus & 0.000000 & 3523.000000 & 0.000000 \\
grafana & 0.000000 & 1206.000000 & 0.000000 \\
redis & 0.000000 & 464.000000 & 0.000000 \\
feedservice & 7.649104 & 19188.000000 & 146771.000000 \\
feedservice-db & 0.000000 & 7455.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 217.000000 & 0.000000 \\
servicediscovery & 0.000000 & 742.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 260353.000000 & 0.000000 \\
\bottomrule
\end{tabular}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
\toprule
& efficiency & total\_energy & successful\_requests \\
\midrule
prometheus & 0.000000 & 3523.000000 & 0.000000 \\
postservice-db & 0.000000 & 162520.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 217.000000 & 0.000000 \\
gateway & 64.481190 & 10659.000000 & 687305.000000 \\
userservice & 62.487268 & 5498.000000 & 343555.000000 \\
zipkin & 0.000000 & 1095.000000 & 0.000000 \\
servicediscovery & 0.000000 & 742.000000 & 0.000000 \\
userservice-db & 0.000000 & 21917.000000 & 0.000000 \\
notificationservice & 90.936278 & 2558.000000 & 232615.000000 \\
postservice & 20.344050 & 172812.000000 & 3515696.000000 \\
feedservice-db & 0.000000 & 7455.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1846.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 260353.000000 & 0.000000 \\
statisticservice & 48.775384 & 12301.000000 & 599986.000000 \\
redis & 0.000000 & 464.000000 & 0.000000 \\
notificationservice-db & 0.000000 & 7655.000000 & 0.000000 \\
postservice & 20.344050 & 172812.000000 & 3515696.000000 \\
notificationservice & 90.936278 & 2558.000000 & 232615.000000 \\
userservice & 62.487268 & 5498.000000 & 343555.000000 \\
gateway & 64.481190 & 10659.000000 & 687305.000000 \\
statisticservice & 48.775384 & 12301.000000 & 599986.000000 \\
zipkin & 0.000000 & 1095.000000 & 0.000000 \\
prometheus & 0.000000 & 3523.000000 & 0.000000 \\
grafana & 0.000000 & 1206.000000 & 0.000000 \\
redis & 0.000000 & 464.000000 & 0.000000 \\
feedservice & 7.649104 & 19188.000000 & 146771.000000 \\
feedservice-db & 0.000000 & 7455.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 217.000000 & 0.000000 \\
servicediscovery & 0.000000 & 742.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 260353.000000 & 0.000000 \\
\bottomrule
\end{tabular}
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.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
\toprule
& efficiency & total\_energy & successful\_requests \\
\midrule
gateway & 74.097711 & 6335.000000 & 469409.000000 \\
redis & 0.000000 & 469.000000 & 0.000000 \\
zipkin & 0.000000 & 988.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 334620.000000 & 0.000000 \\
userservice & 60.014619 & 3899.000000 & 233997.000000 \\
postservice & 19.669671 & 124279.000000 & 2444527.000000 \\
feedservice & 9.759767 & 11672.000000 & 113916.000000 \\
servicediscovery & 0.000000 & 537.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 334620.000000 & 0.000000 \\
postservice-db & 0.000000 & 212079.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1236.000000 & 0.000000 \\
userservice-db & 0.000000 & 30226.000000 & 0.000000 \\
prometheus & 0.000000 & 1921.000000 & 0.000000 \\
notificationservice-db & 0.000000 & 11897.000000 & 0.000000 \\
notificationservice & 150.603571 & 1120.000000 & 168676.000000 \\
postservice & 19.669671 & 124279.000000 & 2444527.000000 \\
grafana & 0.000000 & 1004.000000 & 0.000000 \\
feedservice & 9.759767 & 11672.000000 & 113916.000000 \\
feedservice-db & 0.000000 & 7356.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 134.000000 & 0.000000 \\
userservice & 60.014619 & 3899.000000 & 233997.000000 \\
notificationservice-db & 0.000000 & 11897.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1236.000000 & 0.000000 \\
userservice-db & 0.000000 & 30226.000000 & 0.000000 \\
statisticservice & 62.593600 & 6031.000000 & 377502.000000 \\
gateway & 74.097711 & 6335.000000 & 469409.000000 \\
zipkin & 0.000000 & 988.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 134.000000 & 0.000000 \\
feedservice-db & 0.000000 & 7356.000000 & 0.000000 \\
prometheus & 0.000000 & 1921.000000 & 0.000000 \\
\bottomrule
\end{tabular}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
\toprule
& efficiency & total\_energy & successful\_requests \\
\midrule
gateway & 74.097711 & 6335.000000 & 469409.000000 \\
redis & 0.000000 & 469.000000 & 0.000000 \\
zipkin & 0.000000 & 988.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 334620.000000 & 0.000000 \\
userservice & 60.014619 & 3899.000000 & 233997.000000 \\
postservice & 19.669671 & 124279.000000 & 2444527.000000 \\
feedservice & 9.759767 & 11672.000000 & 113916.000000 \\
servicediscovery & 0.000000 & 537.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 334620.000000 & 0.000000 \\
postservice-db & 0.000000 & 212079.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1236.000000 & 0.000000 \\
userservice-db & 0.000000 & 30226.000000 & 0.000000 \\
prometheus & 0.000000 & 1921.000000 & 0.000000 \\
notificationservice-db & 0.000000 & 11897.000000 & 0.000000 \\
notificationservice & 150.603571 & 1120.000000 & 168676.000000 \\
postservice & 19.669671 & 124279.000000 & 2444527.000000 \\
grafana & 0.000000 & 1004.000000 & 0.000000 \\
feedservice & 9.759767 & 11672.000000 & 113916.000000 \\
feedservice-db & 0.000000 & 7356.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 134.000000 & 0.000000 \\
userservice & 60.014619 & 3899.000000 & 233997.000000 \\
notificationservice-db & 0.000000 & 11897.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1236.000000 & 0.000000 \\
userservice-db & 0.000000 & 30226.000000 & 0.000000 \\
statisticservice & 62.593600 & 6031.000000 & 377502.000000 \\
gateway & 74.097711 & 6335.000000 & 469409.000000 \\
zipkin & 0.000000 & 988.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 134.000000 & 0.000000 \\
feedservice-db & 0.000000 & 7356.000000 & 0.000000 \\
prometheus & 0.000000 & 1921.000000 & 0.000000 \\
\bottomrule
\end{tabular}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
\toprule
& efficiency & total\_energy & successful\_requests \\
\midrule
snmp-exporter & 0.000000 & 137.000000 & 0.000000 \\
zipkin & 0.000000 & 935.000000 & 0.000000 \\
feedservice-db & 0.000000 & 6990.000000 & 0.000000 \\
userservice-db & 0.000000 & 34597.000000 & 0.000000 \\
grafana & 0.000000 & 396.000000 & 0.000000 \\
feedservice & 6.221224 & 10903.000000 & 67830.000000 \\
statisticservice & 60.378080 & 4626.000000 & 279309.000000 \\
gateway & 68.230411 & 5794.000000 & 395327.000000 \\
feedservice-db & 0.000000 & 6990.000000 & 0.000000 \\
notificationservice-db & 0.000000 & 16137.000000 & 0.000000 \\
postservice-db & 0.000000 & 239526.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1107.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 332988.000000 & 0.000000 \\
userservice & 70.294160 & 2791.000000 & 196191.000000 \\
notificationservice & 155.585062 & 964.000000 & 149984.000000 \\
postservice & 14.192948 & 136135.000000 & 1932157.000000 \\
userservice-db & 0.000000 & 34597.000000 & 0.000000 \\
redis & 0.000000 & 465.000000 & 0.000000 \\
prometheus & 0.000000 & 936.000000 & 0.000000 \\
gateway & 68.230411 & 5794.000000 & 395327.000000 \\
notificationservice & 155.585062 & 964.000000 & 149984.000000 \\
statisticservice-db & 0.000000 & 332988.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 137.000000 & 0.000000 \\
userservice & 70.294160 & 2791.000000 & 196191.000000 \\
zipkin & 0.000000 & 935.000000 & 0.000000 \\
servicediscovery & 0.000000 & 520.000000 & 0.000000 \\
prometheus & 0.000000 & 936.000000 & 0.000000 \\
statisticservice & 60.378080 & 4626.000000 & 279309.000000 \\
postservice-db & 0.000000 & 239526.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1107.000000 & 0.000000 \\
\bottomrule
\end{tabular}
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@
\toprule
& efficiency & total\_energy & successful\_requests \\
\midrule
snmp-exporter & 0.000000 & 137.000000 & 0.000000 \\
zipkin & 0.000000 & 935.000000 & 0.000000 \\
feedservice-db & 0.000000 & 6990.000000 & 0.000000 \\
userservice-db & 0.000000 & 34597.000000 & 0.000000 \\
grafana & 0.000000 & 396.000000 & 0.000000 \\
feedservice & 6.221224 & 10903.000000 & 67830.000000 \\
statisticservice & 60.378080 & 4626.000000 & 279309.000000 \\
gateway & 68.230411 & 5794.000000 & 395327.000000 \\
feedservice-db & 0.000000 & 6990.000000 & 0.000000 \\
notificationservice-db & 0.000000 & 16137.000000 & 0.000000 \\
postservice-db & 0.000000 & 239526.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1107.000000 & 0.000000 \\
statisticservice-db & 0.000000 & 332988.000000 & 0.000000 \\
userservice & 70.294160 & 2791.000000 & 196191.000000 \\
notificationservice & 155.585062 & 964.000000 & 149984.000000 \\
postservice & 14.192948 & 136135.000000 & 1932157.000000 \\
userservice-db & 0.000000 & 34597.000000 & 0.000000 \\
redis & 0.000000 & 465.000000 & 0.000000 \\
prometheus & 0.000000 & 936.000000 & 0.000000 \\
gateway & 68.230411 & 5794.000000 & 395327.000000 \\
notificationservice & 155.585062 & 964.000000 & 149984.000000 \\
statisticservice-db & 0.000000 & 332988.000000 & 0.000000 \\
snmp-exporter & 0.000000 & 137.000000 & 0.000000 \\
userservice & 70.294160 & 2791.000000 & 196191.000000 \\
zipkin & 0.000000 & 935.000000 & 0.000000 \\
servicediscovery & 0.000000 & 520.000000 & 0.000000 \\
prometheus & 0.000000 & 936.000000 & 0.000000 \\
statisticservice & 60.378080 & 4626.000000 & 279309.000000 \\
postservice-db & 0.000000 & 239526.000000 & 0.000000 \\
rabbitmq & 0.000000 & 1107.000000 & 0.000000 \\
\bottomrule
\end{tabular}
10 changes: 5 additions & 5 deletions loadtesting/notebooks/energy_efficiency.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@
"ax.grid(True)\n",
"\n",
"plt.xticks(rotation=45)\n",
"plt.savefig(outputdir+'energy_consumption_by_stage.png')\n",
"plt.savefig(outputdir+'energy_consumption_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "56ea1e879333850b",
Expand Down Expand Up @@ -481,7 +481,7 @@
"\n",
"plt.title('Energy Efficiency and Successful Requests by User Count Stage')\n",
"plt.xticks(rotation=45)\n",
"plt.savefig(outputdir+'energy_efficiency_by_stage.png')\n",
"plt.savefig(outputdir+'energy_efficiency_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "8313594c7b9afe7f",
Expand Down Expand Up @@ -594,7 +594,7 @@
"ax.set_title('Energy Efficiency per Service')\n",
"ax.grid(True)\n",
"\n",
"plt.savefig(outputdir+'energy_efficiency_by_service.png')\n",
"plt.savefig(outputdir+'energy_efficiency_by_service.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "8c1437737673659e",
Expand Down Expand Up @@ -640,7 +640,7 @@
"ax.set_title('Energy Efficiency per Service (Including DB Consumption)')\n",
"ax.grid(True)\n",
"\n",
"plt.savefig(outputdir+'energy_efficiency_by_service_merged_with_database.png')\n",
"plt.savefig(outputdir+'energy_efficiency_by_service_merged_with_database.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "4c4ac8b262dd8efc",
Expand Down Expand Up @@ -745,7 +745,7 @@
"ax.grid(True)\n",
"\n",
"plt.xticks(rotation=45)\n",
"plt.savefig(outputdir+'energy_efficiency_by_service_by_stage.png')\n",
"plt.savefig(outputdir+'energy_efficiency_by_service_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "f3d9ace13938a4a1",
Expand Down
16 changes: 8 additions & 8 deletions loadtesting/notebooks/locust.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"id": "3d6de811535875d3",
"metadata": {},
"source": [
"basedir = \"../data/baseapp/2024-07-15/\"\n",
"basedir = \"../data/baseapp/2024-07-15/16-18/\"\n",
"outputdir = basedir+\"output/\"\n",
"os.makedirs(outputdir, exist_ok=True)\n",
"locust_data_history_file = basedir + \"data_stats_history.csv\"\n",
Expand Down Expand Up @@ -162,7 +162,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.savefig(outputdir+'requests_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "1d9b22107c2c29a8",
Expand Down Expand Up @@ -191,7 +191,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.savefig(outputdir+'requests_time_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"id": "ab2c8c0f950ff28a",
Expand All @@ -212,7 +212,7 @@
"plt.ylabel('Total Average Response Time (ms)')\n",
"\n",
"plt.xticks(rotation=45)\n",
"plt.savefig(outputdir + 'box_plt_average_response_time_by_stage.png')\n",
"plt.savefig(outputdir + 'box_plt_average_response_time_by_stage.png', bbox_inches='tight')\n",
"plt.show()\n",
"\n",
"# Box plot for Total Median Response Time\n",
Expand All @@ -224,7 +224,7 @@
"plt.ylabel('Total Median Response Time (ms)')\n",
"\n",
"plt.xticks(rotation=45)\n",
"plt.savefig(outputdir + 'box_plt_mean_response_time_by_stage.png')\n",
"plt.savefig(outputdir + 'box_plt_mean_response_time_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"outputs": [],
Expand All @@ -244,7 +244,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.savefig(outputdir+'plt_average_failure_rate_by_stage.png', bbox_inches='tight')\n",
"plt.show()"
],
"outputs": [],
Expand Down Expand Up @@ -298,7 +298,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.savefig(outputdir+'confidence_intervals_median_response_time.png', bbox_inches='tight')\n",
"plt.show()"
],
"outputs": [],
Expand Down Expand Up @@ -333,7 +333,7 @@
"plt.ylabel('Failure Rate')\n",
"plt.legend()\n",
"plt.grid(True)\n",
"plt.savefig(outputdir+'confidence_intervals_failure_rate.png')\n",
"plt.savefig(outputdir+'confidence_intervals_failure_rate.png', bbox_inches='tight')\n",
"plt.show()"
],
"outputs": [],
Expand Down

0 comments on commit 91cc1f0

Please sign in to comment.