|
8 | 8 | from cryptography import __version__ as cryptography_version
|
9 | 9 | from urllib.parse import urlparse
|
10 | 10 | import requests
|
11 |
| -import matplotlib.pyplot as plt |
| 11 | +#import matplotlib.pyplot as plt |
12 | 12 |
|
13 | 13 | import oracledb
|
14 | 14 | import psycopg2
|
|
22 | 22 | # Oracle Database credentials
|
23 | 23 | oracle_un = 'admin'
|
24 | 24 | oracle_pw = 'your_password'
|
25 |
| -oracle_cs = '(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.uk-london-1.oraclecloud.com))(connect_data=(service_name=m*******_demoadb_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))' |
| 25 | +oracle_cs = '(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1521)(host=adb.uk-london-1.oraclecloud.com))(connect_data=(service_name=m783q0lhgfda8ox_demoadb_high.adb.oraclecloud.com))(security=(ssl_server_dn_match=yes)))' |
26 | 26 |
|
27 | 27 | # PostgreSQL credentials
|
28 | 28 | pgsql_un = 'postgres'
|
@@ -221,15 +221,15 @@ def url_ping(interval, csvfile):
|
221 | 221 | calculate_p99_latency()
|
222 | 222 |
|
223 | 223 | # Plot the latencies on a graph
|
224 |
| -plt.figure(figsize=(10, 5)) |
225 |
| -plt.plot(query_times, marker='o') |
226 |
| -plt.title('Latency Over Time') |
227 |
| -plt.xlabel('Query Number') |
228 |
| -plt.ylabel('Latency (ms)') |
| 224 | +#plt.figure(figsize=(10, 5)) |
| 225 | +#plt.plot(query_times, marker='o') |
| 226 | +#plt.title('Latency Over Time') |
| 227 | +#plt.xlabel('Query Number') |
| 228 | +#plt.ylabel('Latency (ms)') |
229 | 229 |
|
230 | 230 | # Save the plot to a file
|
231 | 231 | output_file = "latency_plot.png"
|
232 |
| -plt.savefig(output_file, bbox_inches='tight', dpi=300) |
| 232 | +#plt.savefig(output_file, bbox_inches='tight', dpi=300) |
233 | 233 |
|
234 | 234 | # Display the plot
|
235 |
| -plt.show() |
| 235 | +#plt.show() |
0 commit comments