|
13 | 13 |
|
14 | 14 | os.makedirs("charts", exist_ok=True)
|
15 | 15 |
|
| 16 | +# Sort and plot Compilation Time |
| 17 | +df_sorted = df.sort_values("Compilation Time (seconds)", ascending=False) |
16 | 18 | plt.figure(figsize=(12, 6))
|
17 |
| -plt.barh(df["Config"], df["Compilation Time (seconds)"]) |
| 19 | +plt.barh(df_sorted["Config"], df_sorted["Compilation Time (seconds)"]) |
18 | 20 | plt.xlabel("Compilation Time (seconds)")
|
19 | 21 | plt.title("Compilation Time by Config")
|
20 | 22 | plt.tight_layout()
|
21 | 23 | plt.savefig("charts/complation_time.png")
|
22 | 24 |
|
| 25 | +# Sort and plot Output File Size |
| 26 | +df_filtered = df.dropna(subset=["Output File Size (bytes)"]) |
| 27 | +df_sorted = df_filtered.sort_values("Output File Size (bytes)", ascending=False) |
23 | 28 | plt.figure(figsize=(12, 6))
|
24 |
| -plt.barh(df["Config"], df["Output File Size (bytes)"] / (1024**2)) |
| 29 | +plt.barh(df_sorted["Config"], df_sorted["Output File Size (bytes)"] / (1024**2)) |
25 | 30 | plt.xlabel("Output File Size (MB)")
|
26 | 31 | plt.title("Output File Size by Config")
|
27 | 32 | plt.tight_layout()
|
28 | 33 | plt.savefig("charts/output_file_size.png")
|
29 | 34 |
|
| 35 | +# Sort and plot Target Folder Size |
| 36 | +df_sorted = df.sort_values("Target Folder Size (bytes)", ascending=False) |
30 | 37 | plt.figure(figsize=(12, 6))
|
31 |
| -plt.barh(df["Config"], df["Target Folder Size (bytes)"] / (1024**3)) |
| 38 | +plt.barh(df_sorted["Config"], df_sorted["Target Folder Size (bytes)"] / (1024**3)) |
32 | 39 | plt.xlabel("Target Folder Size (GB)")
|
33 | 40 | plt.title("Target Folder Size by Config")
|
34 | 41 | plt.tight_layout()
|
|
0 commit comments